javascript number/currency formatting

JavascriptNumber Formatting

Javascript 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.

Javascript Solutions


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRocco The TacoView Question on Stackoverflow