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 541 forks source link

Don't allow entry when entry is already at maximumFractionDigits #365

Closed MikePlante1 closed 4 months ago

MikePlante1 commented 4 months ago

This makes it so there isn't any weird rounding when entering more decimal places than allowed. Now it just prevents entering more decimal places once the maximum has been entered.

marionbarker commented 4 months ago

Summary

This fixes the "weird rounding"

Configuration

Tests

Example:

Type a value with multiple decimal places into

bjornoleh commented 4 months ago

Merging with two approvals.