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

          Issue ID: 20361
           Summary: denormalized floatingpoint number literals do not work
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

void main()
{
    float f = 1e-40f;
}

Compiling with dmd produces:

test.d(3): Error: number 1e-40f is not representable

But it is representable. The bit pattern is:

0 00000000 00000010001011011000010

--

Reply via email to