Skip to content

Commit

Permalink
set max fraction digits to min fraction digits if that one is bigger …
Browse files Browse the repository at this point in the history
…than max.
  • Loading branch information
rpbouman committed Apr 24, 2024
1 parent 9385a47 commit 79f3c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/sql/SQLHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ function createNumberFormatter(fractionDigits){
if (fractionDigits){
options.minimumFractionDigits = localeSettings.minimumFractionDigits;
options.maximumFractionDigits = localeSettings.maximumFractionDigits;
if (options.maximumFractionDigits < options.minimumFractionDigits) {
options.maximumFractionDigits = options.minimumFractionDigits;
}
}
var formatter;
try {
Expand Down

0 comments on commit 79f3c67

Please sign in to comment.