%fmtnum() Function

Top  Previous  Next

%fmtnum() function is used to format the given number data.

Syntax:

%fmtnum(numberformat-template)
 

number

The number to be formatted.

format-template

The template to format the number. See Number Formatting Specifiers

 

Example:

%fmtnum(12500.37,'Price : %12.2n USD') 

 

Result:

Price :    12,500.37 USD