[Issue 17185] Error: number '0x0.0123p-1022' is not representable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 16 14:47:34 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
This code:

void main()
{
    import std.stdio : writeln;
    writeln(double(0x0.0123p-1022)); // Prints 64+64i, should print 64+0i       
}


compiles just fine on my machine (Ubunutu 20.04.4).

--


More information about the Digitalmars-d-bugs mailing list