mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 23:40:58 +00:00
core: fix style
This commit is contained in:
parent
e1f0c238cf
commit
566753e551
@ -80,7 +80,11 @@ def format_amount(amount: int, decimals: int) -> str:
|
||||
else:
|
||||
sign = ""
|
||||
d = pow(10, decimals)
|
||||
s = ("%s%d.%0*d" % (sign, amount // d, decimals, amount % d)).rstrip("0").rstrip(".")
|
||||
s = (
|
||||
("%s%d.%0*d" % (sign, amount // d, decimals, amount % d))
|
||||
.rstrip("0")
|
||||
.rstrip(".")
|
||||
)
|
||||
return s
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user