>>> j = .8 >>> j 0.80000000000000004 Python follows the IEEE-754 standard, which doesn't represent the numbers exactly. See http://en.wikipedia.org/wiki/IEEE_754 Mohammad Tayseer http://spellcoder.com/blogs/tayseer
________________________________ From: "farsi...@gmail.com" <farsi...@gmail.com> Sent: Sunday, March 8, 2009 4:16:53 PM Subject: 2.6.1 - simple division >>> 4 / 5.0 0.800000000000000004 >>> 0.8 * 5 4.0 python 2.6.1 on mac. What the hell is going on here? -- http://mail.python.org/mailman/listinfo/python-list
-- http://mail.python.org/mailman/listinfo/python-list