This is probably a simple question but I can't find solution in 1600 pages of ASP books!
I taking a form result, doing some calculations and displaying the results, as:
subtotal = quan * 15.00
I want the results to appear with 2 decimal places, as currency, but trailing zeroes are being truncated.
There must be a way to do this, can you help?
Thanks, Tom
Setting Decimal Places
Page 1 of 13 Replies - 18295 Views - Last Post: 23 November 2002 - 01:32 AM
#5
Re: Setting Decimal Places
Posted 22 November 2002 - 10:27 AM
As currency
Just with 2 decimal places
HTH!
subtotal = FormatCurrency(quan * 15.00)
Just with 2 decimal places
subtotal = FormatNumber((quan * 15.00),2)
HTH!
#6
Re: Setting Decimal Places
Posted 22 November 2002 - 02:10 PM
Thanks! worked just as expected, even better because it is currency - don't need to add $ now.
Regards,
Tom
Regards,
Tom
#7
Re: Setting Decimal Places
Posted 23 November 2002 - 01:32 AM
tcpvi, on Nov 22 2002, 05:10 PM, said:
Thanks! worked just as expected, even better because it is currency - don't need to add $ now.
Regards,
Tom
Regards,
Tom
Always willing to help, amigo!
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|