Function DisplayFormatNumber
Outputs a number with a specific format
DisplayFormatNumber([VALUE],[FORMAT])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | decimal | required | n/a | VALUE | The value to format |
2 | string | required | n/a | FORMAT | The format to apply |
Returns
The formatted value
Examples
Example of formatting a number as 2 decimal places
{{DisplayFormatNumber(ALIAS.PRICEASK,"{0:d2}")}}
Example of formatting a number as an integer
{{DisplayFormatNumber(ALIAS.PRICEASK,"{0:n0}")}}
Example of formatting a number as percentage
{{DisplayFormatNumber(ALIAS.PRICEASK,"{0:p}")}}
Example of formatting a number as currency
{{DisplayFormatNumber(ALIAS.PRICEASK,"{0:c}")}}
Please see the following link for available formats in .NET
https://docs.microsoft.com/en-us/dotnet/standard/base-types/formatting-types