Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: src/js/i18n.js

Issue 2694673003: NumberFormat: default mnsd value is 1 (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/intl/number-format/check-digit-ranges.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/i18n.js
diff --git a/src/js/i18n.js b/src/js/i18n.js
index 26ebe7e8431a02345348122d8f0c549666f48acc..680f67ad3a082dd7b2e9d18b53f119ad289f4264 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -1205,7 +1205,7 @@ function CreateNumberFormat(locales, options) {
var mnsd = options['minimumSignificantDigits'];
var mxsd = options['maximumSignificantDigits'];
if (!IS_UNDEFINED(mnsd) || !IS_UNDEFINED(mxsd)) {
- mnsd = getNumberOption(options, 'minimumSignificantDigits', 1, 21, 0);
+ mnsd = getNumberOption(options, 'minimumSignificantDigits', 1, 21, 1);
defineWEProperty(internalOptions, 'minimumSignificantDigits', mnsd);
mxsd = getNumberOption(options, 'maximumSignificantDigits', mnsd, 21, 21);
« no previous file with comments | « no previous file | test/intl/number-format/check-digit-ranges.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698