Question/request/bug(?) re. floating-point in dmd

Martin Nowak code at dawg.eu
Wed Oct 30 11:29:11 PDT 2013


On 10/23/2013 06:16 PM, Walter Bright wrote:
>
> A D compiler is allowed to compute floating point results at arbitrarily
> large precision - the storage size (float, double, real) only specify
> the minimum precision.

It seems like there is some change in C99 to address excess precision.
Namely assignments and casts are NOT allowed to have greater precision.
Not sure if assignments refers to first storing and then loading a 
value. So maybe it's useful to review that rule.

http://stackoverflow.com/questions/503436/how-to-deal-with-excess-precision-in-floating-point-computations/503523#503523
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00105.html


More information about the Digitalmars-d mailing list