commit 96017fe530dde415e161114ea74a0528d374fd56
parent 91b4019d2e3c804262c780cc93ffeb282d538742
Author: ThomasV <thomasv@gitorious>
Date: Wed, 11 Jun 2014 18:20:25 +0200
fiat_e: set precision to 0.01
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
@@ -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)