floating point glitch

Paul Rubin http
Tue Sep 28 12:07:04 CEST 2004

Piet van Oostrum <piet at cs.uu.nl> writes:
> PR> Nah, you can do that by printing everything as zero.
> That would not maintain print/read consistency, i.e. if you read back the
> printed value you don't get the original value.

The current conversion doesn't have that property.

    >>> a=.66+1e-13
    >>> print a
    >>> b=0.66
    >>> a==b

More information about the Python-list mailing list