-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Meassurement charts rounding #695
Comments
yes, that is definitely a bit too much precision |
mhhh, could not reproduce this, even with other "weird" numbers |
I could reproduce it even on the latest master branch w/ Flutter desktop. I think the issue occurs, if the weight measurements are within the same whole number, but just different decimals. I reproduced it on wger.de, using the latest master branch. I've made a user you can test on on wger.de :) |
my guess is that the charting library uses doubles with one decimal over a long range, and many more decimals on a short range, so it just "happened to work" with the standard printing behavior, before. thanks for the report and the fix! |
Steps to Reproduce
Expected results:
I would expect it to not write
79.39999999999999
, and instead just do79.40
.Actual results:
** Other **
I'm unsure if any of the improvements in #657 could cause it, or if it's just a preexisting thing.
The text was updated successfully, but these errors were encountered: