code not true?

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Sat Apr 22 15:50:43 CEST 2000


ng at hardlight.couk.com wrote in comp.lang.python:
> interestingly enough on both Win32 and Linux
> 
> >>> a = 0.07 * 100
> 
> >>> a
> 7.0
> 
> >>> a == 7.0
> 0

This is fixed in 1.6. It will show the "full" value of a, i.e.
>>> a = 0.07 * 100
>>> a
7.0000000000000009

Older versions tried to simplify but that just makes it harder to
understand...

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl
Hi! I'm a .sig virus! Join the fun and copy me into yours!



More information about the Python-list mailing list