summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glucometerutils/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py
index de5d293..2760ce8 100644
--- a/glucometerutils/common.py
+++ b/glucometerutils/common.py
@@ -51,7 +51,7 @@ def convert_glucose_unit(value: float, from_unit: Unit, to_unit: Unit) -> float:
if from_unit == Unit.MG_DL:
return round(value / 18.0, 2)
- return round(value * 18.0, 0)
+ return round(value * 18.0, 1)
@attr.s(auto_attribs=True)