MCPcopy Create free account
hub / github.com/apache/cloudstack / numberFilter

Function numberFilter

tools/ngui/static/js/lib/angular.js:9883–9889  ·  view source on GitHub ↗
($locale)

Source from the content-addressed store, hash-verified

9881
9882numberFilter.$inject = ['$locale'];
9883function numberFilter($locale) {
9884 var formats = $locale.NUMBER_FORMATS;
9885 return function(number, fractionSize) {
9886 return formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,
9887 fractionSize);
9888 };
9889}
9890
9891var DECIMAL_SEP = '.';
9892function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {

Callers

nothing calls this directly

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected