<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma, 'new york', times, serif;font-size:12pt"><div><div>>>> j = .8</div><div>>>> j</div><div>0.80000000000000004</div><div><br></div><div>Python follows the IEEE-754 standard, which doesn't represent the numbers exactly. See <a href="http://en.wikipedia.org/wiki/IEEE_754">http://en.wikipedia.org/wiki/IEEE_754</a></div><div> </div>Mohammad Tayseer<br><a rel="nofollow" target="_blank" href="http://spellcoder.com/blogs/tayseer">http://spellcoder.com/blogs/tayseer</a><br><div><br></div><div style="font-family:tahoma, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "farsight@gmail.com" <farsight@gmail.com><br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, March 8, 2009 4:16:53
 PM<br><b><span style="font-weight: bold;">Subject:</span></b> 2.6.1 - simple division<br></font><br>
>>> 4 / 5.0<br>0.800000000000000004<br>>>> 0.8 * 5<br>4.0<br><br>python 2.6.1 on mac. What the hell is going on here?<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></div><div style="position:fixed"></div></div></div><br>



      </body></html>