fix(precheck): fix bug in parsing fixed-point numbers in LEF (#168)

as suggested by @smunaut
This commit is contained in:
htfab
2026-05-04 13:52:49 +02:00
committed by GitHub
parent d4626aaed7
commit e63fad485d
+1 -1
View File
@@ -96,7 +96,7 @@ def parse_fp3(value: str):
# parse fixed-point numbers with 3 digits after the decimal point # parse fixed-point numbers with 3 digits after the decimal point
# e.g. '20.470' to 20470 # e.g. '20.470' to 20470
ip, fp = value.split(".") ip, fp = value.split(".")
mul = ip + fp[:3].rjust(3, "0") mul = ip + fp[:3].ljust(3, "0")
return int(mul) return int(mul)