Adding Two Decimal Places using JavaScript
Good day Everyone! I want to know how to return the output with two decimal places. Instead of 10,000 I want it to return 10,000.00. Also I already put .toFixed(2) but it's not working. When the amount has decimal number other than zero, the values appear on the printout, but when the decimal number has a zero value, the Zeros won't appear on the printout. Also, I have added a value of Wtax that was pulled-out on a "Bill Credit" Transaction. Output: Numeral.js - is a library that you can use for number formatting. With that you can format your number as follows: numeral(10000).format('$0,0.00'