On Fri, Feb 19, 2010 at 12:37 PM, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> hi
>
>>>> round(2.1667000000000001,3)
> 2.1669999999999998

From: http://docs.python.org/tutorial/floatingpoint.html

you may be tempted to use the round() function to chop it back to the
single digit you expect. But that makes no difference:

>>> round(0.1, 1)
0.10000000000000001

--
Baiju M
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to