From e63fad485d27eccc28044a415d2ad57c19216fab Mon Sep 17 00:00:00 2001 From: htfab <91572108+htfab@users.noreply.github.com> Date: Mon, 4 May 2026 13:52:49 +0200 Subject: [PATCH] fix(precheck): fix bug in parsing fixed-point numbers in LEF (#168) as suggested by @smunaut --- precheck/pin_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precheck/pin_check.py b/precheck/pin_check.py index 7691ad1..63baf38 100644 --- a/precheck/pin_check.py +++ b/precheck/pin_check.py @@ -96,7 +96,7 @@ def parse_fp3(value: str): # parse fixed-point numbers with 3 digits after the decimal point # e.g. '20.470' to 20470 ip, fp = value.split(".") - mul = ip + fp[:3].rjust(3, "0") + mul = ip + fp[:3].ljust(3, "0") return int(mul)