试试把1.2转换成二进制数
in IEEE standard, the double precision number 1.2 is represented by 0x3ff3333333333333 (8byte), and you have a round-off error.
for more details:
http://en.wikipedia.org/wiki/IEEE_754
for more details:
http://en.wikipedia.org/wiki/IEEE_754