Calculation differences between Debug and Release mode

bearophile bearophileHUGS at lycos.com
Sat Apr 13 03:34:09 PDT 2013


Alexandr Druzhinin:

> I'm not sure, but I suspect this is because of 80-bit 
> intermediary float point operation result.

Maybe D uses higher precision FP values in some of those 
intermediate computations.
In general float is useful if you have to store many of them, for 
storage reasons (reduce memory use, reduce cache pressure), but 
otherwise for computations in a functions it's better to use 
doubles.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list