How do I get floating point numbers to work like currency?
Posted: Wed Jul 06, 2005 1:12 pm
Hi,
I'm working on a shopping site which takes prices, quantities, etc. and calculates a final cost. I cannot figure out how to get floating point numbers to automatically look like currency, ie. 43.50 as opposed to 43.5. I've spent quite a bit of time researching to no avail, so now I'm turning to the forum. Can anyone help? Hope this can be of use to others out there, too.
Thanks.
I'm working on a shopping site which takes prices, quantities, etc. and calculates a final cost. I cannot figure out how to get floating point numbers to automatically look like currency, ie. 43.50 as opposed to 43.5. I've spent quite a bit of time researching to no avail, so now I'm turning to the forum. Can anyone help? Hope this can be of use to others out there, too.
Thanks.