This commit is contained in:
Andrej730
2024-10-24 15:19:14 +05:00
parent 8d3aa98b58
commit dfd11fb723
+1 -1
View File
@@ -188,7 +188,7 @@ class Unit(bonsai.core.tool.Unit):
def format_value(cls, value: float) -> str:
precision = tool.Ifc.get().by_type("IfcGeometricRepresentationContext")[0].Precision
if precision:
decimal_places = math.ceil(math.log10(1/precision))
decimal_places = math.ceil(math.log10(1 / precision))
else:
precision = 1e-5
decimal_places = 5