Inconsistent results casting double to int on x86

John Love-Jensen eljay@adobe.com
Wed Mar 22 21:14:00 GMT 2006


Hi Andrew,

The two results differ because float-point numbers are not able to exactly
represent all possible real numbers.

Detailed information here...
http://docs.sun.com/source/806-3568/ncg_goldberg.html

HTH,
--Eljay



More information about the Gcc-help mailing list