Attempt to fix floating point issues with temp conversion

This commit is contained in:
Ave Ozkal 2018-12-26 10:15:50 +03:00
parent 0516e6ed4a
commit bdf55e4103
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

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