($locale)
| 20024 | numberFilter.$inject = ['$locale']; |
| 20025 | |
| 20026 | function numberFilter($locale) { |
| 20027 | var formats = $locale.NUMBER_FORMATS; |
| 20028 | return function (number, fractionSize) { |
| 20029 | // if null or undefined pass it through |
| 20030 | return (number == null) |
| 20031 | ? number |
| 20032 | : formatNumber(number, |
| 20033 | formats.PATTERNS[0], |
| 20034 | formats.GROUP_SEP, |
| 20035 | formats.DECIMAL_SEP, |
| 20036 | fractionSize); |
| 20037 | }; |
| 20038 | } |
| 20039 | |
| 20040 | /** |
| 20041 | * Parse a number (as a string) into three components that can be used |
nothing calls this directly
no test coverage detected