🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #21401

Re: przypisac nieskonczonosc

#21401
From: Bart Ogryczak
Date: Tue, 16 Oct 2007 14:25
38 lines
2885 bytes
On Oct 16, 3:07 pm, Seweryn Habdank-Wojewódzki <shw_m...@wp.pl> wrote:
> Witam
>
> Bart Ogryczak wrote:
> >> To jest raczej problem implementacji i reprezentacji tekstowej.
>
> > Nie tylko tekstowej. Spróbuj zrobic z tego binarne pikle.
>
> Nie spróbuję, bo nie znam się :-).
>
> >> W każdym razie w C używasz funkcji isnan(x) lub isinf(x). Te funkcje
> >> zwracają stosowne wartości.
>
> >> isnan(x) => 0 jeśli x nie jest NaN. 1 jesli x jest NaN.
>
> >> isinf(x) => -1 jeśli x jest -Inf, 1 jeśli x jest Inf, 0 w przeciwnym
> >> przypadku.
>
> > Ale jak to pomaga w stworzeniu stalej?
>
> W C99 masz w math.h co następuje:
>
> /* MACROS */
> #define HUGE_VAL <double rvalue>
> #define HUGE_VALF <float rvalue> [added with C99]
> #define HUGE_VALL <long double rvalue> [added with C99]
>
> #define INFINITY <float rvalue> [added with C99]
> #define NAN <float rvalue> [added with C99]
>
> To jest respektowane przez sensownych producentów kompilatorów.

Wrecz przeciwnie, zaden z sensownych producentów tego nie wspiera. Nie
ma tego w Visual Studio, nie ma tego w Borlandzie. A w GCC, nawet tym
najnowszym, wsparcie dla IEEE754 float point, jest oznaczone jako
"broken", z przypisem, ze na niektórych architekturach byc moze bedzie
dzialac.
Innymi slowy OKDR, C99 to vaporware.
Technical Details
Message-ID: <1192544706.206962.324280@q3g2000prf.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!q3g2000prf.googlegroups.com!not-for-mail
References: <20071016103416.e69a7bc7.sulsa@dontmail.me> <1192526464.122236.16990@v23g2000prn.googlegroups.com> <ff21gb$l2i$1@news.vectranet.pl> <1192533601.905010.17440@y27g2000pre.googlegroups.com> <ff28jc$rkt$1@news.vectranet.pl> <1192538475.635966.79370@z24g2000prh.googlegroups.com> <ff2cc5$vg0$1@news.vectranet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!q3g2000prf.googlegroups.com!not-for-mail
From: Bart Ogryczak <B.Ogryczak@gmail.com>
Newsgroups: pl.comp.lang.python
Subject: Re: przypisac nieskonczonosc
Date: Tue, 16 Oct 2007 14:25:06 -0000
Organization: http://groups.google.com
Lines: 44
Message-ID: <1192544706.206962.324280@q3g2000prf.googlegroups.com>
References: <20071016103416.e69a7bc7.sulsa@dontmail.me>   <1192526464.122236.16990@v23g2000prn.googlegroups.com>   <ff21gb$l2i$1@news.vectranet.pl>   <1192533601.905010.17440@y27g2000pre.googlegroups.com>   <ff28jc$rkt$1@news.vectranet.pl>   <1192538475.635966.79370@z24g2000prh.googlegroups.com>   <ff2cc5$vg0$1@news.vectranet.pl>
NNTP-Posting-Host: 195.149.215.221
Mime-Version: 1.0
X-Trace: posting.google.com 1192544706 26484 127.0.0.1 (16 Oct 2007 14:25:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 16 Oct 2007 14:25:06 +0000 (UTC)
In-Reply-To: <ff2cc5$vg0$1@news.vectranet.pl>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 oliver (NetCache NetApp/6.0.4P1D4)
Complaints-To: groups-abuse@google.com
Injection-Info: q3g2000prf.googlegroups.com; posting-host=195.149.215.221;   posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit