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

example/pretty doesn't round 0.99999999999999999 properly #1773

Open
nigeltao opened this issue Sep 1, 2020 · 0 comments
Open

example/pretty doesn't round 0.99999999999999999 properly #1773

nigeltao opened this issue Sep 1, 2020 · 0 comments

Comments

@nigeltao
Copy link

nigeltao commented Sep 1, 2020

Taking example/pretty/pretty.cpp:

$ echo '[0.5, 0.99999999999999999, 2, 123.456789]' | ./pretty
[
    0.5,
    1.0000000000000003,
    2,
    123.456789
]

If anything, I would have expected 0.99999999999999999 to be rounded to 1.0.

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