[Issue 3947] Implicit and explicit casting of floating point to bool produces different results

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 15:16:00 UTC 2024


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

Nick Treleaven <nick at geany.org> changed:

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

--- Comment #1 from Nick Treleaven <nick at 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.

--


More information about the Digitalmars-d-bugs mailing list