mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
Fix numbers being formatted wrong on some machines [DEV-5]
My system is configured to use German causing the method to use the wrong decimal seperator for the given format
This commit is contained in:
parent
5255dbf701
commit
ce72ab7291
@ -15,6 +15,7 @@ public class NumberUtils {
|
||||
// This is done to specifically prevent the NBSP character from printing in foreign languages.
|
||||
DecimalFormatSymbols symbols = decimalFormatter.getDecimalFormatSymbols();
|
||||
symbols.setGroupingSeparator(',');
|
||||
symbols.setDecimalSeparator('.');
|
||||
|
||||
decimalFormatter.setDecimalFormatSymbols(symbols);
|
||||
return decimalFormatter.format(number);
|
||||
|
Loading…
Reference in New Issue
Block a user