From b7af82823dfc44997c1443c1d8ee663ebb6218ad Mon Sep 17 00:00:00 2001 From: Will Minnis Date: Sat, 21 Sep 2019 20:37:57 -0700 Subject: [PATCH] don't cast F2C conversion to int prevents rounding errors that show the wrong emoji when displaying temp as Celsius --- ircbot/plugin/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircbot/plugin/weather.py b/ircbot/plugin/weather.py index 9604ae8..d38d3bc 100644 --- a/ircbot/plugin/weather.py +++ b/ircbot/plugin/weather.py @@ -21,7 +21,7 @@ def weather(bot, msg): def f2c(temp): - return int((temp - 32) * 5 / 9) + return (temp - 32) * 5 / 9 def deg_to_compass(deg):