Strange double to uint conversion

mipri mipri at minimaltype.com
Mon Nov 18 21:14:37 UTC 2019


On Monday, 18 November 2019 at 21:08:39 UTC, Luiz Silveira wrote:
>         double f;

If this is changed to `real f;`, you get the desired result.

real is also the type used for the comparison code:
https://dlang.org/spec/float.html#fp_const_folding



More information about the Digitalmars-d-learn mailing list