This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: exp() bug?


Hi Lester,

Not a bug. Different platforms have different hardware, and as such different rounding or algorithms can cause variation in the least significant bits. (In non-technical terms, the fiddlybits.)

There are techniques one can use to mitigate those situations. But they are hard to eliminate.

Even in Java, which is supposed to be JVM centric and thus platform neutral, suffers from this problem without taking measures to guarantee IEEE 754 compliance.

Sincerely,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]