Thread overview
[Issue 3947] Implicit and explicit casting of floating point to bool produces different results
Jan 16, 2017
ZombineDev
Dec 17, 2022
Iain Buclaw
January 16, 2017
https://issues.dlang.org/show_bug.cgi?id=3947

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=3947

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
June 03
https://issues.dlang.org/show_bug.cgi?id=3947

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #1 from Nick Treleaven <nick@geany.org> ---
> - finite real numbers > -1 and < 1 are false

That is not the case, at least for all compilers currently on run.dlang.io:

    static assert(cast(bool) 0.1f);

Built-in complex numbers are now deprecated.

--