Jan Mulder a072c635bc fix weights rounding
Simplify and fix prestation of weights. Due to the attempt to round
only the grams part (by just adding 50 to it, and truncating
afterwards) a weird effect was introduced. For example, a value
0.98 was presented as 0.10. Just replay the old logic, and see
what happens. Rewrote the logic to a simpler and better one.

fixes: #532

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-08-10 09:13:26 -07:00
..
2017-07-16 21:53:44 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:52:04 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:44:36 -07:00
2017-04-29 13:32:55 -07:00
2017-07-30 21:28:34 -07:00
2017-07-19 06:21:23 -07:00
2017-08-10 09:13:26 -07:00
2017-05-07 07:52:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-07-17 16:50:03 -07:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:52:04 -07:00
2017-04-29 13:32:55 -07:00