6.8.2.5 Format Function

Syntax

format (expression1, expression2)

Description

The format function converts expression1 to a string using the conversion format specified by expression2. Information on conversion formats is in Chapter 13, Formatting Data Values. The data type of expression1 determines the type of conversion.

Examples

format (level > 0, "on; off")

format (amount, "$###,###.##5")