Possible Duplicate:
How can I format numbers as money in JavaScript?
This is the current code I am using:
f[0].update(parseFloat($('tier').getValue().replace('$','').replace(',',''))*parseFloat(text.replace('$','').replace(',','')));
The problem I am having is that the price shows without the $ and not proper currency.
For example, something that should show as $29.50 shows as 29.5 or something that should show as $5.00 shows as 5.