From 96017fe530dde415e161114ea74a0528d374fd56 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 11 Jun 2014 18:20:25 +0200 Subject: [PATCH] fiat_e: set precision to 0.01 --- plugins/exchange_rate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 5128e4300..3ce444709 100644 --- 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)