Skip to content

Commit 2f637b2

Browse files
committed
Merge pull request lichess-org#1145 from ornicar/distributionprecision
A decimal place precision
2 parents c54f91e + 53324a2 commit 2f637b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/stat/ratingDistribution.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1 class="lichess_title">Monthly @perfType.name rating distribution</h1>
2626
case (under, sum) => {
2727
<strong>@sum.localize</strong> @perfType players this month.<br />
2828
Your rating is <strong>@rating</strong>.<br />
29-
You are better than <strong>@(under * 100 / sum)%</strong> of @perfType.name players.
29+
You are better than <strong>@("%.1f" format under * 100.0 / sum)%</strong> of @perfType.name players.
3030
}
3131
}
3232
}.getOrElse {

0 commit comments

Comments
 (0)