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

round(x, sigdigits) differs on some systems #33428

Open
JeffreySarnoff opened this issue Sep 30, 2019 · 0 comments
Open

round(x, sigdigits) differs on some systems #33428

JeffreySarnoff opened this issue Sep 30, 2019 · 0 comments
Labels
domain:maths Mathematical functions

Comments

@JeffreySarnoff
Copy link
Contributor

This issue was uncovered here: https://discourse.julialang.org/t/round-can-anybody-explain-this-behavior-to-me/29230. Some people show their results starting from https://discourse.julialang.org/t/round-can-anybody-explain-this-behavior-to-me/29230/11.

Depending on the entry

julia> round(1e23, sigdigits=1)
1.0000000000000001e23
# or
julia> round(1e23, sigdigits=1)
1.0e23
@JeffreySarnoff JeffreySarnoff changed the title round(x,sigdigits) is different on some systems round(x, sigdigits) differs on some systems Sep 30, 2019
@brenhinkeller brenhinkeller added the domain:maths Mathematical functions label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:maths Mathematical functions
Projects
None yet
Development

No branches or pull requests

2 participants