Why not FP for Money?

Paul Rubin http
Fri Sep 24 04:54:27 EDT 2004


aleaxit at yahoo.com (Alex Martelli) writes:
> yep, str(35.72) == '35.72'.

Hmm.

    >>> 35.72
    35.719999999999999

I wonder why str(35.72) is different from repr(35.72).



More information about the Python-list mailing list