From fc47a0a74fdff55354ae76488a707bb71252dd63 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sun, 26 Mar 2017 16:12:53 +0200 Subject: [PATCH] Force US decimal format --- .../command/executable/authme/debug/DebugSectionUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/fr/xephi/authme/command/executable/authme/debug/DebugSectionUtils.java b/src/main/java/fr/xephi/authme/command/executable/authme/debug/DebugSectionUtils.java index 78960ce8..d98ce746 100644 --- a/src/main/java/fr/xephi/authme/command/executable/authme/debug/DebugSectionUtils.java +++ b/src/main/java/fr/xephi/authme/command/executable/authme/debug/DebugSectionUtils.java @@ -7,6 +7,8 @@ import org.bukkit.Location; import java.lang.reflect.Field; import java.math.RoundingMode; import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; +import java.util.Locale; import java.util.Map; import java.util.function.Function; @@ -56,6 +58,7 @@ final class DebugSectionUtils { */ private static String round(double number) { DecimalFormat df = new DecimalFormat("#.##"); + df.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.US)); df.setRoundingMode(RoundingMode.HALF_UP); return df.format(number); }