diff options
| author | Pete Bacon Darwin | 2013-07-08 11:23:15 +0100 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-08 11:23:37 +0100 |
| commit | bcaa4217bc4f2970560ae660b589042ae2c4d976 (patch) | |
| tree | a5d900a4f21b7bc3f6ec8d8a7fff41dbd507efad | |
| parent | 0823f6dfab141bcc48ff23bff85be14c22f1c431 (diff) | |
| download | angular.js-bcaa4217bc4f2970560ae660b589042ae2c4d976.tar.bz2 | |
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
| -rw-r--r-- | src/ng/filter/filters.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
