-
Suggestion
-
Resolution: Fixed
-
None
The current implementation of DoubleConverter hard codes a decimal separator of period '.'
This doesnt work in locations that use comma ',' as the decimal separator.
We should not hard code the call to setDecimalSeparator especially for the display format.
public class DoubleConverter { private static final DecimalFormat DISPLAY_FORMAT; static { DISPLAY_FORMAT = new DecimalFormat(); DISPLAY_FORMAT.setGroupingUsed(false); DISPLAY_FORMAT.setMinimumFractionDigits(0); DecimalFormatSymbols formatSymbols = new DecimalFormatSymbols(); formatSymbols.setDecimalSeparator('.'); DISPLAY_FORMAT.setDecimalFormatSymbols(formatSymbols); } private static final DecimalFormat LUCENE_FORMAT; static { LUCENE_FORMAT = new DecimalFormat(); LUCENE_FORMAT.setGroupingUsed(false); LUCENE_FORMAT.setMinimumIntegerDigits(14); LUCENE_FORMAT.setMaximumIntegerDigits(14); LUCENE_FORMAT.setMinimumFractionDigits(3); LUCENE_FORMAT.setMaximumFractionDigits(3); DecimalFormatSymbols formatSymbols = new DecimalFormatSymbols(); formatSymbols.setDecimalSeparator('.'); LUCENE_FORMAT.setDecimalFormatSymbols(formatSymbols); } ... ...
- is duplicated by
-
JRASERVER-14780 The Number Custom Field does not allow for internationalised input and display.
- Closed
- is related to
-
JRASERVER-16883 Custom Field "Number Field" is truncated to the 3rd decimal place
- Closed