Separate BigDecimal localized format. #PL-1939

This commit is contained in:
Konstantin Krivopustov 2013-03-14 09:17:33 +00:00
parent 06055fcda3
commit b73fb21013
4 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ public class BigDecimalDatatype extends NumberDatatype implements Datatype<BigDe
return format(value);
DecimalFormatSymbols formatSymbols = formatStrings.getFormatSymbols();
NumberFormat format = new DecimalFormat(formatStrings.getDoubleFormat(), formatSymbols);
NumberFormat format = new DecimalFormat(formatStrings.getDecimalFormat(), formatSymbols);
return format.format(value);
}
@ -89,7 +89,7 @@ public class BigDecimalDatatype extends NumberDatatype implements Datatype<BigDe
return parse(value);
DecimalFormatSymbols formatSymbols = formatStrings.getFormatSymbols();
DecimalFormat format = new DecimalFormat(formatStrings.getDoubleFormat(), formatSymbols);
DecimalFormat format = new DecimalFormat(formatStrings.getDecimalFormat(), formatSymbols);
format.setParseBigDecimal(true);
return (BigDecimal) parse(value, format);
}

View File

@ -11,8 +11,8 @@ timeFormat=HH:mm
#Number formats
integerFormat=#,##0
longFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
# Number separators
numberDecimalSeparator=.

View File

@ -8,9 +8,9 @@ numberDecimalSeparator = .
dateTimeFormat = dd/MM/yyyy HH:mm
timeFormat = HH:mm
doubleFormat = #,##0.###
decimalFormat=#,##0.##
dateFormat = dd/MM/yyyy
numberGroupingSeparator =\u0020
integerFormat = #,##0
longFormat = #,##0
trueString = Vrai
falseString = Faux

View File

@ -11,8 +11,8 @@ timeFormat=HH:mm
#Number formats
integerFormat=#,##0
longFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
# Number separators
numberDecimalSeparator=,