From 40dee2102d32436fe8bcc5a99d8edb7174a79a97 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 26 Jun 2021 23:03:51 -0600 Subject: [PATCH] Add percent to accuracy --- jarvis/cogs/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/image.py b/jarvis/cogs/image.py index ec98541..e2d99c8 100644 --- a/jarvis/cogs/image.py +++ b/jarvis/cogs/image.py @@ -75,7 +75,7 @@ class ImageCog(commands.Cog): accuracy = (len(file) / tgt_size) * 100 await ctx.send( "New size: {}".format(convert_bytesize(len(file))) - + "\nAccuracy: {}".format(accuracy), + + "\nAccuracy: {:0.2f}%".format(accuracy), file=File(bufio, filename="resized.png"), )