mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmbar.Currency.str(): Properly format to two decimal places
This commit is contained in:
parent
7574b916cd
commit
30cd5462b4
1 changed files with 1 additions and 1 deletions
|
@ -75,4 +75,4 @@ class Currency:
|
|||
return resamount
|
||||
|
||||
def str(self, amount):
|
||||
return str(amount) + " " + self.name
|
||||
return "{:.2f} {}".format(amount, self.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue