weird math errors in python 2.1.1

Tim Peters tim.one at home.com
Wed Aug 29 16:49:58 EDT 2001


[andrew]
> in interactive interpreter, i get these results:
> 
> >>> 21.0 /5
> 4.2000000000000002
> >>> 22.0 /5
> 4.4000000000000004
> >>> 23.0/5
> 4.5999999999999996
> >>> 24.0/5
> 4.7999999999999998
> >>>

I'm glad your Python is working correctly <wink>.  See

    http://python.sourceforge.net/devel-docs/tut/node14.html





More information about the Python-list mailing list