showing results for - "parsefloat and tofixed method"
Paola
08 Aug 2020
1var num1 = parseFloat("10.547892")
2var num2 = parseFloat("10.547892").toFixed(2)
3console.log("Without using toFixed() method");
4console.log(num1);
5console.log("Using toFixed() method");
6console.log(num2);
7