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

Add support for decimal floats #289

Open
dumblob opened this issue Nov 18, 2021 · 0 comments
Open

Add support for decimal floats #289

dumblob opened this issue Nov 18, 2021 · 0 comments

Comments

@dumblob
Copy link

dumblob commented Nov 18, 2021

Is your feature request related to a problem? Please describe.
I'm always frustrated when the compiler lies to me and instead of the number literal I see stores a different number to the memory/register and first then starts the actual computation.

Describe the solution you'd like
Either error out, that the given float literal can't be converted to a binary float due to loss of precision. Or add support for (arbitrary precision like mpdecimal?) decimal floats.

Describe alternatives you've considered
Leave it as it is - which is very painful and significantly contributes to the oddity of floats in general.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant