curious problem with large numbers

Jeff Epler jepler at unpythonic.net
Thu Apr 7 16:24:38 EDT 2005


You may want to read
http://www.python.org/peps/pep-0754.html

Part of the text reads
    The IEEE 754 standard defines a set of binary representations and
    algorithmic rules for floating point arithmetic. Included in the
    standard is a set of constants for representing special values,
    including positive infinity, negative infinity, and indeterminate or
    non-numeric results (NaN). Most modern CPUs implement the IEEE 754
    standard, including the (Ultra)SPARC, PowerPC, and x86 processor
    series.

    Currently, the handling of IEEE 754 special values in Python depends
    on the underlying C library. Unfortunately, there is little
    consistency between C libraries in how or whether these values are
    handled. For instance, on some systems "float('Inf')" will properly
    return the IEEE 754 constant for positive infinity. On many systems,
    however, this expression will instead generate an error message.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050407/1bca4a8a/attachment.sig>


More information about the Python-list mailing list