mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
validate_input - add rounding to remove float garbage
This commit is contained in:
@@ -438,6 +438,7 @@ class Polyline(bonsai.core.tool.Polyline):
|
||||
|
||||
transformer = InputTransform()
|
||||
result = transformer.transform(parse_tree)
|
||||
result = round(result, 5)
|
||||
return True, str(result)
|
||||
except:
|
||||
return False, "0"
|
||||
|
||||
Reference in New Issue
Block a user