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

Multiplication issue #41

Open
raedon707 opened this issue Jun 14, 2021 · 1 comment
Open

Multiplication issue #41

raedon707 opened this issue Jun 14, 2021 · 1 comment

Comments

@raedon707
Copy link

I'm trying to multiply 9.700000042 and 1000000000 using the times method.
It should show 9700000042 as the final result. But it's returning 9700000041.999998.
please help.

@nmorse
Copy link

nmorse commented Aug 10, 2022

yes strange and if you add or remove a zero from each number it comes out as expected:
9.70000042 * 100000000 -> as expected
9.700000042 * 1000000000 -> NOT as expected
9.7000000042 * 10000000000 -> as expected

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

2 participants