Looking for the greatest negative float value

Dan Bishop danb_83 at yahoo.com
Thu Jun 12 01:01:43 EDT 2003


mwilson at the-wire.com (Mel Wilson) wrote in message news:<Yr55+ks/KTSM089yn at the-wire.com>...
> In article <bc7lvb$gm3$1 at news-reader12.wanadoo.fr>,
> "Gilles Lenfant" <glenfant at NOSPAM.bigfoot.com> wrote:
> >Hi,
> >
> >I need the same as...
> >
> >import sys
> >negmaxint = - sys.maxint -1
> >
> >... but for float data
[snip]
> -1.7976931348623157e+308
> 
> and that last number seems credible.

Close.  The exact value, per the IEEE 754 standard, is -(2 ** 1024 - 2
** 972), or -1.7976931348623155e+308.  How did you get a *higher*
magnitude?




More information about the Python-list mailing list