From bdf55e4103b46d2ba5d8d79de4fc302d2b13a205 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Wed, 26 Dec 2018 10:15:50 +0300 Subject: [PATCH] Attempt to fix floating point issues with temp conversion --- cogs/meme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/meme.py b/cogs/meme.py index 1fdc449..d84f60d 100644 --- a/cogs/meme.py +++ b/cogs/meme.py @@ -33,7 +33,8 @@ class Meme: fahrenheit = self.c_to_f(celsius) kelvin = self.c_to_k(celsius) await ctx.send(f"{user.mention} warmed." - f" User is now {celsius}°C ({fahrenheit}°F, {kelvin}K).") + f" User is now {celsius}°C " + f"({fahrenheit:.2}°F, {kelvin:.2}K).") @commands.check(check_if_staff_or_ot) @commands.command(hidden=True, name="bam")