version: Python 2.6<br>OS : Windows 7<br><br>The variable x below should have been 10(integer) after the expression evaluates. It ,however, gets the value 10.000000000000002 (float) , as follows,<br>--------------------------------------------<br>
&gt;&gt;&gt; x=math.exp ( math.log(10.0))<br>&gt;&gt;&gt; x<br>10.000000000000002<br><br><br>&gt;&gt;&gt; x=math.exp ( math.log(10))<br>&gt;&gt;&gt; x<br>10.000000000000002<br>--------------------------------------------<br>
<br>In mathematics, the result is not right.<br>