mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 04:07:42 +08:00
Separate BigDecimal localized format. #PL-1939
This commit is contained in:
parent
06055fcda3
commit
b73fb21013
@ -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);
|
||||
}
|
||||
|
@ -11,8 +11,8 @@ timeFormat=HH:mm
|
||||
|
||||
#Number formats
|
||||
integerFormat=#,##0
|
||||
longFormat=#,##0
|
||||
doubleFormat=#,##0.###
|
||||
decimalFormat=#,##0.##
|
||||
|
||||
# Number separators
|
||||
numberDecimalSeparator=.
|
||||
|
@ -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
|
||||
|
@ -11,8 +11,8 @@ timeFormat=HH:mm
|
||||
|
||||
#Number formats
|
||||
integerFormat=#,##0
|
||||
longFormat=#,##0
|
||||
doubleFormat=#,##0.###
|
||||
decimalFormat=#,##0.##
|
||||
|
||||
# Number separators
|
||||
numberDecimalSeparator=,
|
||||
|
Loading…
Reference in New Issue
Block a user