New to Kendo UI for AngularStart a free 30-day trial

Formats a number value to a string based on the requested format. This pipe uses the IntlService.

Definition

Package:@progress/kendo-angular-intl

Syntax:

ts
  <ul>
    <li>{{decimal | kendoNumber:'c' }}</li>
    <li>{{stringNumber | kendoNumber:'p' }}</li>
    <li>{{int | kendoNumber:'##.00' }}</li>
 </ul>

Methods

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:valueany

The number that will be formatted.

format?string | NumberFormatOptions

The format string or options (optional).

localeId?string

The locale ID that will be used in place of the default one (optional).

Returns:

any

The formatted number as a string.

In this article
DefinitionMethodstransform
Not finding the help you need?
Contact Support