[Numpy-discussion] Precision in Python

Elton Mendes emgmendes at gmail.com
Mon Nov 27 05:56:43 CST 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061127/dcb727fa/attachment.html 


More information about the Numpy-discussion mailing list