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

chained binary expressions lose precision #95

Closed
JBLorincz opened this issue Dec 3, 2023 · 0 comments · Fixed by #100
Closed

chained binary expressions lose precision #95

JBLorincz opened this issue Dec 3, 2023 · 0 comments · Fixed by #100
Assignees
Labels
bug Something isn't working

Comments

@JBLorincz
Copy link
Owner

JBLorincz commented Dec 3, 2023

ABCDE = 1+2+3+4+5;
MEAN = ABCDE / 5;

OTHER_MEAN = (1+2+3+4+5) / 5;

MEAN will have the correct value of 3.000000
OTHER_MEAN will have an incorrect value of 3.8000900...

@JBLorincz JBLorincz added the bug Something isn't working label Dec 3, 2023
@JBLorincz JBLorincz self-assigned this Dec 3, 2023
@JBLorincz JBLorincz linked a pull request Dec 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant