From d61e0b05a3a41d82222151daed915682fd56632a Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Fri, 11 May 2018 13:01:28 +0300 Subject: [PATCH] Specify format for "total profit" output Else it displays e-notation for small amounts (less than 100 satoshis, I guess), like 4.5e-07. --- jmclient/jmclient/wallet_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index 4691eaa..08e4e4a 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -728,7 +728,7 @@ def wallet_fetch_history(wallet, options): print(' %s best block is %s' % (datetime.fromtimestamp(now) .strftime("%Y-%m-%d %H:%M"), bestblockhash)) total_profit = float(balance - sum(deposits)) / float(100000000) - print('total profit = ' + str(total_profit) + ' BTC') + print('total profit = %.8f BTC' % total_profit) if abs(total_profit) > 0: try: