Using the FormatCurrency function is easy. SEe the example below.
<%
Dim myvar = 12000
Dim mymoney = FormatCurrency(myvar,2)
%>
Description
The FormatCurrency() function takes a number or expression and returns a formatted currency value using the currency symbol defined in the control panel.
FormatCurrency(Number[,Precision [,IncludeLeadingZero [,UseParensForNegatives [,GroupDigits]]]])
Returned formatted string
Parameters
The Number parameter specifies the number or expression to be formatted.
The optional Precision parameter specifies the the number of decimal points to display.
The optional IncludeLeadingZero parameter specifies whether fractions should be shown with a leading 0 before the decimal place.
The optional UseParensForNegatives parameter specifies whether negative values should be shown within parentheses.
The optional GroupDigits parameter specifies whether numbers should use the group delimiter specified in the computer\'s regional settings.