NumberPipe
Formats a number value to a string based on the requested format.
This pipe uses the IntlService
.
- {{decimal | kendoNumber:'c' }}
- {{stringNumber | kendoNumber:'p' }}
- {{int | kendoNumber:'##.00' }}
Methods
transform
Converts a Number
object into a string based on the specified format.
If no format is provided, the value is formatted as decimal number using the
"n"
format.
Parameters
value
any
The numer that will be formatted.
format?
string | NumberFormatOptions
The format string or options.
localeId?
string
(Optional) The locale ID that will be used in place of the default one.
Returns
any
- The formatted number.