From c9579a305484c4d3728cd3ea64e7f254166eb0f5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Mar 2020 17:57:53 +0000 Subject: [PATCH] Few more fixes --- price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/price.py b/price.py index 8fe7d85..80c3a61 100644 --- a/price.py +++ b/price.py @@ -351,7 +351,7 @@ def stock(bot, trigger): low = j['l'] last = j['c'] pc = j['pc'] - bot.say("On {} {} had a high of {:.2f}, a low of {:.2f}, and last price of {:.2f} w/ {:.2f}% change".format(datetime.datetime.fromtimestamp(date), ticker, high, low, last, (last-pc)/pc)) + bot.say("On {} {} had a high of {:.2f}, a low of {:.2f}, and last price of {:.2f} w/ {:.2f}% change".format(datetime.datetime.fromtimestamp(date), ticker, high, low, last, float(((last-pc)/pc))*100)) except: bot.say("Can't find {}".format(ticker))