mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
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
This commit is contained in:
parent
0823f6dfab
commit
bcaa4217bc
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue