Browse Source

Attempt to fix floating point issues with temp conversion

main
Ave Ozkal 2 years ago
parent
commit
7f7058c7e6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cogs/meme.py

+ 2
- 1
cogs/meme.py 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")


Loading…
Cancel
Save