round() function strange behaviour
a.clarke11 at pop.ntlworld.com
Sun Mar 10 00:46:49 CET 2002
I think it's a bug intrinsic to the round function: I use a Mac, and I
tried differnt arguments for round. Where the decimal ends in nine, in
whatever decimal place I tried, the answer is a recurrent decimal,
usually nine but sometimes zero.
Has it been reported??
the round() function will sometimes return a predictable result, as
but sometimes it will return something like:
2.1 and 2.2 both behave this way on two different (Windows) computers.
What's going on here?
More information about the Python-list