I want to display the 00 after the decimal points but when i try to use the following:
console.log(Number("5000.00").toLocaleString('en'));
or
console.log(parseFloat("5000.00").toLocaleString('en'));
the output which i get in both cases is 5,000 and if i use the following :
console.log(Number("5000.02").toLocaleString('en'));
or
console.log(parseFloat("5000.02").toLocaleString('en'));
the output which i get in both above cases is 5,000.02
I want to get 5,000.00 as output in the first 2 cases i.e when the value is "5000.00". How can i achieve this?