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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

format currency in asp version 2 ?

Status
Not open for further replies.

debrac

IS-IT--Management
Jan 9, 2001
48
0
0
AU
the vb function format currency does not work in asp version 2, as it displays an 'x' as a dollar sign. what else can i use instead? (on NT4)

thanks
 
Hello
<%
myVar=10.23
response.write formatcurrency(myVar)
%>

The above yields $10.32 for me, I'm using 2.0.

I suppose you could use
<%
response.write &quot;$&quot;&formatnumber(myVar,2)
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top