tfiat_e: set precision to 0.01 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 96017fe530dde415e161114ea74a0528d374fd56
DIR parent 91b4019d2e3c804262c780cc93ffeb282d538742
HTML Author: ThomasV <thomasv@gitorious>
Date: Wed, 11 Jun 2014 18:20:25 +0200
fiat_e: set precision to 0.01
Diffstat:
M plugins/exchange_rate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
t@@ -658,6 +658,6 @@ class Plugin(BasePlugin):
return
fiat_amount = self.exchanger.exchange(Decimal(btc_amount)/Decimal(100000000), self.fiat_unit())
if fiat_amount is not None:
- self.fiat_e.setText(str(fiat_amount))
+ self.fiat_e.setText("%.2f"%fiat_amount)
self.btc_e.textEdited.connect(btc_changed)
self.win.send_grid.addWidget(self.fiat_e, 4, 3, Qt.AlignHCenter)