See #6332. Fix issue where imperial precision were being used by metric formatting.

This commit is contained in:
Bruno Perdigão
2025-05-08 19:15:51 -03:00
parent 4d1d224a34
commit 1c205d494a
@@ -305,7 +305,7 @@ def format_distance(
if unit_length == "MILLIMETERS":
value = value / 1000
if precision:
if precision and isinstance(precision, float):
value = precision * round(float(value) / precision)
if decimal_places is not None: