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

precision handling strange results #145

Closed
radisb opened this issue Jun 20, 2016 · 4 comments
Closed

precision handling strange results #145

radisb opened this issue Jun 20, 2016 · 4 comments

Comments

@radisb
Copy link

radisb commented Jun 20, 2016

Hello, is this normal? (rounding is not uniform across the set)

@EBMike
Copy link

EBMike commented Jul 28, 2016

Its whats called a hole in the floating point line.

same happens here:
8.325 * 100 => 832.4999999999999

which in turns rounds to:
832

and then:
832 / 100 => 8.32 (which is clearly wrong)

EDIT: I added a pull request which I think will fix this

@EBMike
Copy link

EBMike commented Oct 13, 2016

I'm starting to doubt anybody is monitoring these issues since the last issue closed was Dec 2015

@manfredjb
Copy link

This project looks abandoned. This is a nice project.

wjcrowcroft added a commit that referenced this issue Mar 16, 2017
Updated toFixed method to handle all floating point errors.

Fixes #163, #159, #145, #111, #99, #97, #84, #53
@wjcrowcroft
Copy link
Member

Fixed by #164.

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

4 participants