Attempt to fix floating point issues with temp conversion
This commit is contained in:
parent
0516e6ed4a
commit
bdf55e4103
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ class Meme:
|
||||||
fahrenheit = self.c_to_f(celsius)
|
fahrenheit = self.c_to_f(celsius)
|
||||||
kelvin = self.c_to_k(celsius)
|
kelvin = self.c_to_k(celsius)
|
||||||
await ctx.send(f"{user.mention} warmed."
|
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.check(check_if_staff_or_ot)
|
||||||
@commands.command(hidden=True, name="bam")
|
@commands.command(hidden=True, name="bam")
|
||||||
|
|
Loading…
Reference in a new issue