Click to See Complete Forum and Search --> : Two decimal Accuracy


Gopinath
06-23-2003, 12:55 AM
i am having the variable 'a' and its value is 12

when i display it in browser
i want to show it as 12.00
in Javascript there is a option toFixed(2)
But i need ASP script code

thanks

gerjan
06-23-2003, 04:10 AM
Do you mean this?
a = a + ".00"

It sas
12 = 12 + ".00"

will be
12.00

Bullschmidt
06-24-2003, 12:10 AM
FormatNumber(MyVariable, 2)