javascript number/currency formatting
JavascriptNumber FormattingJavascript Problem Overview
I am working with the following snippet and the end result is a number like 349
. How do I format it to be $349.00
? I thought formatNumber()
would work? What am I doing wrong? The javascript runs through a series of calculations and then presents Net Total, Tax and Total. For Net Total and Tax I would like to see a $ and two decimal places.