Function DisplayFormatNumber

Outputs a number with a specific format

DisplayFormatNumber([VALUE],[FORMAT])

Parameters

#TypePassingDefaultNameDescription/Comments
1decimalrequiredn/aVALUEThe value to format
2stringrequiredn/aFORMATThe 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