bcbasslet
10-11-2002, 09:28 PM
could someone help me print ending zeros in dollars and cents?
If my calculated figure is $1.50, it prints as 1.5
The ending zero vanishes.
I use Math.round(num*100)/100; to get my final calculated figure.
Do i have to parse thru the 1.50 to find the position of the decimal point, measure the remaining distance, and then concatenate a 0 if its 1, concate a .00 if the posit of the decimal is non existent?
I would be grateful for help in doing that. Thanks. Is it in the tutorials anywhere? I've read them all but don't remember.
If my calculated figure is $1.50, it prints as 1.5
The ending zero vanishes.
I use Math.round(num*100)/100; to get my final calculated figure.
Do i have to parse thru the 1.50 to find the position of the decimal point, measure the remaining distance, and then concatenate a 0 if its 1, concate a .00 if the posit of the decimal is non existent?
I would be grateful for help in doing that. Thanks. Is it in the tutorials anywhere? I've read them all but don't remember.