Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting a value into money format?

Status
Not open for further replies.

ryan

Programmer
Nov 13, 2000
73
US
In ColdFusion your can take a value like 3 and convert it into a money value so that it returns $3.00. Now I don't need ASP to add the $ sign but if it does it doesn't matter but I was wondering if ASP has this same ability to take a value and convert it into a dollar format?

Thanks,
Ryan
 
Use the function FormatCurrency

IE FormatCurrency(3,2) = $3.00 - the 2 means use two decimal places (this is the default, but I think it is always good practice to include this, as MS may one day decide to change things, as they do)
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top