Few more fixes

This commit is contained in:
root 2020-03-09 17:57:53 +00:00
parent 43b98d0896
commit c9579a3054
1 changed files with 1 additions and 1 deletions

View File

@ -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))