Re: Inconsistent results casting double to int on x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux