fix(precheck): support integers (without '.' decimal separator) in LEF (#171)

This commit is contained in:
htfab
2026-05-11 08:32:46 +02:00
committed by GitHub
parent a6c7030a0a
commit 5a894537dc
+3
View File
@@ -95,8 +95,11 @@ def canonicalize_rectangles(
def parse_fp3(value: str):
# parse fixed-point numbers with 3 digits after the decimal point
# e.g. '20.470' to 20470
if "." in value:
ip, fp = value.split(".")
mul = ip + fp[:3].ljust(3, "0")
else:
mul = value + "000"
return int(mul)