FormatCurrency

Top  Previous  Next

Function

Parameters

Return value

FormatCurrency

object value

string

 

Formats the specified value as a currency, using the Windows regional settings.

 

Example:

 

FormatCurrency(1.25) = "$1.25"

 

 

Function

Parameters

Return value

FormatCurrency

object value,

int decimalDigits

string

 

Formats the specified value as a currency. The "decimalDigits" parameter indicates how many places are displayed to the right of the decimal.

 

Example:

 

FormatCurrency(1.25, 1) = "$1.3"