Ahah, Apple does have different math
nntp.perl.org
Ahah, Apple does have different math
1–10 of 37 posts
Re: Ahah, Apple does have different math
#2Re: Ahah, Apple does have different math
#3Re: Ahah, Apple does have different math
#4Re: Ahah, Apple does have different math
#5It has been long known that one cannot rely on floating point for precise calculations, e.g. monetary values. One should use integers instead or some kind of other precise representation. But it does surprise me that even on the same CPU architecture you cannot expect every machine to produce the same results.
Re: Ahah, Apple does have different math
#6This isn't a bug. Both code paths produce results of the highest representable precision of the hardware in question. It's just that there are multiple hardware units capable of giving you the answer, and Apple's toolchain picks a different one than whatever Tom is using elsewhere.
And as has been pointed out in FooBarWidget's comment -- any code that relies on bit-precise results from floating point computation is almost certainly concealing precision bugs anyway. That's not the right way to approach floating point architecture.
Re: Ahah, Apple does have different math
#7Wasn't a very similar phenomenon a huge blow to Intel's PR some years back?
Re: Ahah, Apple does have different math
#8Re: Ahah, Apple does have different math
#9Re: Ahah, Apple does have different math
#10Wasn't a very similar phenomenon a huge blow to Intel's PR some years back?