If feet is negative, inches should also be negative (subtractive)

This commit is contained in:
Ryan Schultz
2026-01-07 09:08:12 -06:00
parent c848462905
commit e9eca5e3f2
+5
View File
@@ -166,6 +166,11 @@ def parse_distance_string(input_string: str, use_project_unit: bool = True) -> t
break
if inches is None:
inches = 0
# If feet is negative, inches should also be negative (subtractive)
if feet < 0:
inches = -inches
# Convert to meters
total_meters = (feet * 0.3048) + (inches * 0.0254)
return total_meters