-
Notifications
You must be signed in to change notification settings - Fork 252
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
Basic arithmetic issue #33
Comments
That is indeed the right answer. Here is matlab:
This should have been filed at https://github.com/JuliaLang/julia/issues. |
Allright then, thanks for being so polite and giving me a quick short answer. |
This is a weird place to file such a bug since it has nothing to do with Gadfly. A little more elaboration – R looks like its answer is exactly > 10.3*3
[1] 30.9
> 10.3*3 == 30.9
[1] FALSE
> Julia, on the other hand, prints all the digits required to reconstruct a floating point number exactly, so you can see that this value is not exactly |
julia> 10.3 * 3
30.900000000000002
julia> 10.3 * 3 == 30.9
false
When I type 10.3 * 3 I get 30.900000000000002 instead of 30.9, I'm no expert but I don't get this when I type it into R and I suspect something is wrong.
The text was updated successfully, but these errors were encountered: