Forums

ASP

This topic is locked

numbers / Currency:

Posted 08 Mar 2002 18:02:18
1
has voted
08 Mar 2002 18:02:18 Ian Etherington posted:
I have a simple view page that has product name, price and stock number, these are pulled from an Access database, the problem I have is when the page is viewed if he price is say £2.50 it only shows £2.5 how can I force it to show the extra "0", it shows it in access fine, it is just when it is put through ultradev it losses it!

this is really bugging me!

cheers

Ian

"To start press any key", where's the any key?

Replies

Replied 09 Mar 2002 10:01:04
09 Mar 2002 10:01:04 Hank Tan-Tenn replied:
You can easily specify the number of digits, among other things, by formatting the variable using, for example, VBScript's FormatNumber or FormatCurrency functions. Set "NumDigitsAfterDecimal" to 2. These are very well documented if you need more info.

Reply to this topic