Precision in Python
27 Nov
2006
27 Nov
'06
11:56 a.m.
Hi. I'm having a precision problem in python Example:
a = 5.14343434 b = round(a,1) b 5.0999999999999996
It´s possible to round the number exactly to 5.1
6344
Age (days ago)
6352
Last active (days ago)
2 comments
3 participants
participants (3)
-
Charles R Harris
-
Elton Mendes
-
Tim Hochberg