mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix(precheck): fix bug in parsing fixed-point numbers in LEF (#168)
as suggested by @smunaut
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user