En Sun, 08 Mar 2009 12:22:50 -0200, <farsi...@gmail.com> escribió:

On Mar 8, 2:16 pm, farsi...@gmail.com wrote:
>>> 4 / 5.0

0.800000000000000004
>>> 0.8 * 5

4.0

python 2.6.1 on mac. What the hell is going on here?

Pure curiosity prompted me to try the following:
40 / 5.0
8.0

Strange...

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


--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to