format()

Syntax:

format( Format, Number )

Return:

The number expressed as a string in the given format.

Parameters:

Format - A string describing the format to express the number in. The string should be of the form "Digits.Decimals", where Digits is the total number of digits to use for the number (including the decimal point if there is one) and Decimals is the number of decimal places to use. If the Format string starts with 0 (zero) then the resulting field will be padded with leading zeroes to fill the requested width if it does not already do so.

Number – The number you want to format.

image\Script_Button.jpgExamples