diff --git a/src/main/java/tool/arenasizer/LabelWithSignedNumber.java b/src/main/java/tool/arenasizer/LabelWithSignedNumber.java index 80d20cb04..86cff32f9 100644 --- a/src/main/java/tool/arenasizer/LabelWithSignedNumber.java +++ b/src/main/java/tool/arenasizer/LabelWithSignedNumber.java @@ -75,13 +75,13 @@ private static String formatNumberWithSign(BigDecimal percentage) { } public static String percentString(int w, int g) { - return percentageValueString(BigDecimal.valueOf(w).divide(BigDecimal.valueOf(g), 4, RoundingMode.HALF_DOWN)); + return percentageValueString(BigDecimal.valueOf(w).divide(BigDecimal.valueOf(g), 4, RoundingMode.HALF_UP)); } public static String percentageValueString(BigDecimal percentage) { final BigDecimal percent = percentage .multiply(BigDecimal.valueOf(100)) - .setScale(1, RoundingMode.HALF_DOWN); + .setScale(1, RoundingMode.HALF_UP); return String.format("%s %%", percent); } } \ No newline at end of file