Skip to content

Commit

Permalink
fix rounding of ranking points
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemke committed Jan 18, 2024
1 parent 836eb5b commit 99a5bd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data class RankingDto(
lastTournament = TournamentMinimalDto.toDto(ranking.lastTournament!!),
lastPlace = ranking.lastPlace,
lastDiff = ranking.lastDiff,
points = ranking.points.round(MathContext(0, RoundingMode.HALF_UP)).toInt(),
points = ranking.points.setScale(0, RoundingMode.HALF_UP),
participations = ranking.participations,
gold = ranking.gold,
silver = ranking.silver,
Expand Down

0 comments on commit 99a5bd0

Please sign in to comment.