🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: przypisac nieskonczonosc

#21419
From: Adam Mikuta
Date: Tue, 16 Oct 2007 11:27
14 lines
1296 bytes
Dnia 16.10.2007 Bart Ogryczak <B.Ogryczak@gmail.com> napisał/a:

>> Jak liczbie zmiennoprzecinkowej w pythonie przypisac wartość
>> +nieskonczoność
> Najprosciej tak:
> PosInf = 1e300 * 1e300
> NegInf = -PosInf

A może:
>>> float("infinity")
inf
-- 
Adam              "Prawda jest prosta - gdyby było inaczej
                   każdy głupiec mógłby ją zrozumieć".
Technical Details
Message-ID: <ff2777$373$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <20071016103416.e69a7bc7.sulsa@dontmail.me> <1192526464.122236.16990@v23g2000prn.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: Adam Mikuta <adammikutaWytnij@gmail.wyt.nij.com>
Newsgroups: pl.comp.lang.python
Subject: Re: przypisac nieskonczonosc
Date: Tue, 16 Oct 2007 11:27:35 +0000 (UTC)
Organization: (...) - Cenzura
Lines: 14
Message-ID: <ff2777$373$1@news.onet.pl>
References: <20071016103416.e69a7bc7.sulsa@dontmail.me> <1192526464.122236.16990@v23g2000prn.googlegroups.com>
Reply-To: adammikutaWytnij@gmail.wytnij.com.xx
NNTP-Posting-Host: 87-205-182-35.adsl.inetia.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1192534055 3299 87.205.182.35 (16 Oct 2007 11:27:35 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Tue, 16 Oct 2007 11:27:35 +0000 (UTC)
X-Sender: yatjpYpB2L8Fab7zDPOKcogWGtaagH7MbhaHCzOoZ60=
User-Agent: slrn/0.9.8.1pl1 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit