Strange double to uint conversion

Luiz Silveira zertyz at gmail.com
Mon Nov 18 21:22:28 UTC 2019


On Monday, 18 November 2019 at 21:14:37 UTC, mipri 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

Yes, it worked as expected.

Thank you,
Luiz.


More information about the Digitalmars-d-learn mailing list