From bcaa4217bc4f2970560ae660b589042ae2c4d976 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 8 Jul 2013 11:23:15 +0100 Subject: docs(numberFilter): fix explanation of default fraction size The default fraction size for the number filter is actually computed from the `NUMBER_FORMATS.PATTERNS.maxFrac` value in the current locale. Closes #3157 --- src/ng/filter/filters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index 80e1242e..00fb3c4a 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -62,7 +62,9 @@ function currencyFilter($locale) { * If the input is not a number an empty string is returned. * * @param {number|string} number Number to format. - * @param {(number|string)=} [fractionSize=2] Number of decimal places to round the number to. + * @param {(number|string)=} fractionSize Number of decimal places to round the number to. + * If this is not provided then the fraction size is computed from the current locale's number + * formatting pattern. In the case of the default locale, it will be 3. * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit. * * @example -- cgit v1.2.3