formatnum( param1 )

Description:

Format a number with fixed decimal places and thousands separators.

Input:

Number to format.

Parameters:

Optional number of decimal places to force the formatted number to.

Return:

The formatted number.