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

High precision floating point literal values are not preserved exactly. #3

Open
mbdevpl opened this issue Feb 19, 2018 · 0 comments
Open

Comments

@mbdevpl
Copy link
Owner

mbdevpl commented Feb 19, 2018

E.g. Fortran sqhalf = 0.7071067811865475244 becomes sqhalf = 0.7071067811865476 after transpiling.

The differences come from the not sufficient number of bits used to store the literals. This might not matter in some cases, but in other cases it might cause trouble.

@mbdevpl mbdevpl changed the title High precision floating point constants are not preserved exactly. High precision floating point literal values are not preserved exactly. May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant