[Issue 20451] comparing identical floating points does not work on Win32 and FreeBSD32.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Feb 20 18:45:22 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20451
Berni44 <bugzilla at bernis-buecher.de> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at bernis-buecher.de
--- Comment #10 from Berni44 <bugzilla at bernis-buecher.de> ---
A more simple example, probably the same "bug":
unittest
{
    double a = 0.00009999995;
    double b = 0.00000000005;
    writefln!"%.80f"(a);
    writefln!"%.80f"(0.0001 - b);
    assert(!(a < 0.0001 - b));
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list