
15 Feb
2011
15 Feb
'11
8:47 p.m.
version: Python 2.6 OS : Windows 7
The variable x below should have been 10(integer) after the expression evaluates. It ,however, gets the value 10.000000000000002 (float) , as follows, --------------------------------------------
x=math.exp ( math.log(10.0)) x
10.000000000000002
x=math.exp ( math.log(10)) x
10.000000000000002 --------------------------------------------
In mathematics, the result is not right.