mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
See #6332. Fix issue where imperial precision were being used by metric formatting.
This commit is contained in:
@@ -305,7 +305,7 @@ def format_distance(
|
|||||||
if unit_length == "MILLIMETERS":
|
if unit_length == "MILLIMETERS":
|
||||||
value = value / 1000
|
value = value / 1000
|
||||||
|
|
||||||
if precision:
|
if precision and isinstance(precision, float):
|
||||||
value = precision * round(float(value) / precision)
|
value = precision * round(float(value) / precision)
|
||||||
|
|
||||||
if decimal_places is not None:
|
if decimal_places is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user