Angular filter

sraNumber source

The sraNumber Filter formats a number according to the current locale. "value" can either be a decimal number or a Data object. If it is a Data object, then the Unit of Measure is appended.
Dependencies:
NameTypeDescription
value number The number or Data object containing a number to format
decimals integer (Optional) The number of decimal places to round to, default see Angular's number filter.
blankIfZero boolean (Optional) true to return a blank if zero, default false.
showPositive boolean (Optional) Set to true or a string to show when positive. Defaults to false.
showThousandsSeparator boolean (Optional) Set to true to show the thousands separator.
showApproximateOnly boolean (Optional) true will only show the tilde(~) if the value is estimated, default false.