Client Side Template
:number('formattingDefinition')
Description
Formats numeric values
To format a numeric value, use the :number(formattingDefinition) directive in your placeholder. For example, assume you have a field called Price, which contains this value: 123456.345. You might define the template to emit this field as follows:
{Price:number('$#,###.00')}
This will result in the following output:
$123,456.35
You can also use the :number() directive to merge strings into templates. For example,, assume that you have a field called Phone, which contains 6715551234. The placeholder for this field in your template could be defined as:
{Phone:number('=(###) ###-####')}
This will result in the following output:
(617) 555-1234
The missing data directive can be combined with formatting directives. For example: {price:number('#.00')||N/A}