timfraedrich / OutRun

OutRun is an open-source, privacy oriented, outdoor fitness tracker.
https://outrun.tadris.de
GNU General Public License v3.0
750 stars 65 forks source link

Weight number changes after being set by user #78

Open Shrinks99 opened 2 years ago

Shrinks99 commented 2 years ago

Firstly, thanks for open sourcing this app! It's quite nice :)

Describe the bug When users enter a value for weight it will change after the value is set. Eg: When I enter 135lbs it changes to 134.99lbs. This also happens when I tried entering a value in kilograms though I had to add more decimals for it to change. If I had to guess what the issue is, I would say that the app calculates things in kilos and rounds them nicely which causes values entered in pounds to be rounded strangely. For what it's worth, I think the imperial system is very dumb but we generally use it for weight in Canada for.... some reason. 🙃

To Reproduce Steps to reproduce the behavior:

  1. Go to app Settings
  2. Change the weight value
  3. See error

Expected behavior I expect the value I set to be the value that is displayed / used.

Device Information (please complete the following information):