mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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)
|
tx_dist += str(frac) + "/" + str(base)
|
||||||
if add_inches or frac:
|
if add_inches or frac:
|
||||||
tx_dist += '"'
|
tx_dist += '"'
|
||||||
|
if precision == "12":
|
||||||
|
tx_dist = str(feet) + "'"
|
||||||
else:
|
else:
|
||||||
fmt = "%1.3f"
|
fmt = "%1.3f"
|
||||||
sq_feet = round(value * toInches / inPerFoot, 4)
|
sq_feet = round(value * toInches / inPerFoot, 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user