diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2021-03-27 19:01:10 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-03-27 19:07:08 +0100 |
commit | c4d76438cf8cff0d3d2e5a66f679272d00e93a58 (patch) | |
tree | 26f9319754f6bb0bbd1377ad7af414d1815d5a91 | |
parent | Add .vscode/ to the ignored list. (diff) | |
download | glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar.gz glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar.bz2 glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar.lz glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar.xz glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.tar.zst glucometerutils-c4d76438cf8cff0d3d2e5a66f679272d00e93a58.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/common.py | 2 |
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) |