[Python-Dev] Python 2.6/3.0, IEEE 754 floating point semantics and S60 (original) (raw)

Mark Dickinson dickinsm at gmail.com
Thu Nov 27 20:50:47 CET 2008


Update: it looks like IEEE 754-1985 does require that roundtripping works, at least when the rounding mode is round-to-nearest. From section 5.6 again:

""" When rounding to nearest, conversion from binary to decimal and back to binary shall be the identity as long as the decimal string is carried to the maximum precision specified in Table 2, namely, 9 digits for single and 17 digits for double. """

Mark



More information about the Python-Dev mailing list