diff options
| author | Pete Bacon Darwin | 2013-07-08 11:23:15 +0100 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-08 11:23:15 +0100 |
| commit | 96298f9179ebe366e83ad0abd02888c87438634d (patch) | |
| tree | 5c7da56a5b455a63264bfb34fc376ada9991acaf | |
| parent | 7829c50f9e89e779980f6d60a397aedfc7eaec61 (diff) | |
| download | angular.js-96298f9179ebe366e83ad0abd02888c87438634d.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 d5f3ed20..e0d81acb 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 |
