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

Reply via email to