Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

denormalized floatingpoint number literals do not work #19638

Open
dlangBugzillaToGithub opened this issue Nov 6, 2019 · 0 comments
Open

denormalized floatingpoint number literals do not work #19638

dlangBugzillaToGithub opened this issue Nov 6, 2019 · 0 comments
Labels

Comments

@dlangBugzillaToGithub
Copy link

berni44 (@berni44) reported this on 2019-11-06T15:28:43Z

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

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant