Skip to content

Commit

Permalink
Show up to 2 decimals for percents in battle calc. (#11978)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine authored Sep 21, 2023
1 parent 7ce78a8 commit 3acb9d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ private Territory findPotentialBattleSite() {
}

private static String formatPercentage(final double percentage) {
return new DecimalFormat("#%").format(percentage);
return new DecimalFormat("#%.##").format(percentage);
}

private static String formatValue(final double value) {
Expand Down

0 comments on commit 3acb9d2

Please sign in to comment.