mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
black .
This commit is contained in:
@@ -188,7 +188,7 @@ class Unit(bonsai.core.tool.Unit):
|
|||||||
def format_value(cls, value: float) -> str:
|
def format_value(cls, value: float) -> str:
|
||||||
precision = tool.Ifc.get().by_type("IfcGeometricRepresentationContext")[0].Precision
|
precision = tool.Ifc.get().by_type("IfcGeometricRepresentationContext")[0].Precision
|
||||||
if precision:
|
if precision:
|
||||||
decimal_places = math.ceil(math.log10(1/precision))
|
decimal_places = math.ceil(math.log10(1 / precision))
|
||||||
else:
|
else:
|
||||||
precision = 1e-5
|
precision = 1e-5
|
||||||
decimal_places = 5
|
decimal_places = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user