MCPcopy Create free account
hub / github.com/binux/qiandao / numberFilter

Function numberFilter

web/static/components/angularjs/angular.js:14914–14920  ·  view source on GitHub ↗
($locale)

Source from the content-addressed store, hash-verified

14912
14913numberFilter.$inject = ['$locale'];
14914function numberFilter($locale) {
14915 var formats = $locale.NUMBER_FORMATS;
14916 return function(number, fractionSize) {
14917 return formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,
14918 fractionSize);
14919 };
14920}
14921
14922var DECIMAL_SEP = '.';
14923function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {

Callers

nothing calls this directly

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected