-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: change number formatting with comma as decimal separator #6655
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
@@ -280,6 +280,7 @@ protected DecimalFormat getDecimalFormat(Locale locale) { | |||
DecimalFormat instance = (DecimalFormat) DecimalFormat | |||
.getInstance(locale); | |||
instance.setGroupingUsed(false); | |||
instance.setMaximumFractionDigits(15); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this setting should match the number of fraction digits specified in EXCEL_FORMULA_BAR_DECIMAL_FORMAT
. However, that format allows for 16 digits, not 15.
Line 81 in 0a86fa9
private static final String EXCEL_FORMULA_BAR_DECIMAL_FORMAT = "###.################"; |
Description
Change the number formatting configuration for locales that use commas as decimal separators. Before, the fraction part of the numbers in such locales would allow only 3 digits. This change allows more digits in the fractional part.
Fixes #5731
Type of change