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:
parent
35800e3a85
commit
cd7a75c616
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
))
|
||||
|
||||
|
|
Loading…
Reference in a new issue