[Issue 17160] Apparently faulty behavior comparing enum members using `is`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 8 06:38:46 UTC 2020


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|---                         |WONTFIX

--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
0.1 cannot be represented exactly with floating point types. In particular,
taking an 80 bit value and comparing it with a rounded 64 bit value will not
come out as identical.

Rounding and inexact floating point operations are just something we have to
deal with.

--


More information about the Digitalmars-d-bugs mailing list