Skip to content

Commit dba32af

Browse files
committed
Change float rounding
1 parent 336bde3 commit dba32af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise/util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ def format_measure(measure: str, unit: str) -> float | int:
173173
result = float(f"{round(float_measure, 1):.1f}")
174174
elif abs(float_measure) < 10:
175175
result = float(f"{round(float_measure, 2):.2f}")
176-
elif abs(float_measure) >= 10 and abs(float_measure) < 100:
176+
elif abs(float_measure) >= 10:
177177
result = float(f"{round(float_measure, 1):.1f}")
178-
elif abs(float_measure) >= 100:
179-
result = int(round(float_measure))
180178

181179
return result
182180

0 commit comments

Comments
 (0)