mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
fix #3731 - round to the nearest foot
This commit is contained in:
@@ -272,6 +272,8 @@ def format_distance(
|
||||
tx_dist += str(frac) + "/" + str(base)
|
||||
if add_inches or frac:
|
||||
tx_dist += '"'
|
||||
if precision == "12":
|
||||
tx_dist = str(feet) + "'"
|
||||
else:
|
||||
fmt = "%1.3f"
|
||||
sq_feet = round(value * toInches / inPerFoot, 4)
|
||||
|
||||
Reference in New Issue
Block a user