1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00

Fix rounding bug in /stats all

This commit is contained in:
wlinator 2023-06-21 06:34:21 -04:00
parent 35800e3a85
commit cd7a75c616

View file

@ -39,7 +39,7 @@ class Stats(commands.Cog):
# calculate data
roi = ((bj_total_payout - bj_total_investment) / bj_total_investment) * 100
roi = round(roi, 2)
roi = round(roi, 3)
# output
embed = discord.Embed(
@ -50,8 +50,8 @@ class Stats(commands.Cog):
bj_games_amount,
bj_winning_games_amount,
bj_losing_games_amount,
bj_total_investment,
bj_total_payout,
round(bj_total_investment),
round(bj_total_payout),
roi
))