🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: przypisac nieskonczonosc

#21395
From: Bart Ogryczak
Date: Tue, 16 Oct 2007 09:21
12 lines
1702 bytes
On Oct 16, 10:34 am, Sulsa <su...@dontmail.me> wrote:
> Jak liczbie zmiennoprzecinkowej w pythonie przypisac wartość
> +nieskonczoność

Najprosciej tak:
PosInf = 1e300 * 1e300
NegInf = -PosInf

No, ale jest to otwarty problem. To zalezy od implementacji systemowej
bibliotece w C. W dodatku z tymi wartosciami sa spore problemy z
picklem. Ba, w Windows to skaszani sie nawet float(repr(x)).
Innymi slowy -- nie polecam.
Technical Details
Message-ID: <1192526464.122236.16990@v23g2000prn.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!v23g2000prn.googlegroups.com!not-for-mail
References: <20071016103416.e69a7bc7.sulsa@dontmail.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!v23g2000prn.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 09:21:04 -0000
Organization: http://groups.google.com
Lines: 13
Message-ID: <1192526464.122236.16990@v23g2000prn.googlegroups.com>
References: <20071016103416.e69a7bc7.sulsa@dontmail.me>
NNTP-Posting-Host: 195.149.215.221
Mime-Version: 1.0
X-Trace: posting.google.com 1192526464 4088 127.0.0.1 (16 Oct 2007 09:21:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 16 Oct 2007 09:21:04 +0000 (UTC)
In-Reply-To: <20071016103416.e69a7bc7.sulsa@dontmail.me>
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: v23g2000prn.googlegroups.com; posting-host=195.149.215.221;   posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit