MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / numberFilter

Function numberFilter

OpenReservation/wwwroot/Scripts/angular.js:20026–20038  ·  view source on GitHub ↗
($locale)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

formatNumberFunction · 0.70

Tested by

no test coverage detected