nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
98 stars 526 forks source link

glucose rounding fix #398

Closed MikePlante1 closed 2 months ago

MikePlante1 commented 2 months ago

This is to address Issue https://github.com/nightscout/Trio/issues/396.

Since rounding is taken care of in BloodGlucose now, the down rounding in the numberFormatter can be changed to round halfUp.

Tested from 8 to 11 in increments of 0.1 mmol/L. Here's a snipped:

Screenshot 2024-08-25 at 3 53 29 PM