Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 96298f9

Browse files
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
1 parent 7829c50 commit 96298f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/ng/filter/filters.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ function currencyFilter($locale) {
6262
* If the input is not a number an empty string is returned.
6363
*
6464
* @param {number|string} number Number to format.
65-
* @param {(number|string)=} [fractionSize=2] Number of decimal places to round the number to.
65+
* @param {(number|string)=} fractionSize Number of decimal places to round the number to.
66+
* If this is not provided then the fraction size is computed from the current locale's number
67+
* formatting pattern. In the case of the default locale, it will be 3.
6668
* @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit.
6769
*
6870
* @example

0 commit comments

Comments
 (0)