D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20361 - denormalized floatingpoint number literals do not work
Summary: denormalized floatingpoint number literals do not work
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-06 15:28 UTC by berni44
Modified: 2024-12-13 19:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description berni44 2019-11-06 15:28:43 UTC
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
Comment 1 dlangBugzillaToGithub 2024-12-13 19:06:07 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19638

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB