Hello everyone!
How can I get the exact digits of the number 0.01239e-5 or any similar numbers? I came across this function and tried it:
function financial(x) {
return Number.parseFloat(x).toFixed(100);
}
console.log(financial(‘0.01239e-5’));
This outputs 0.0000001238999999999999911110383846168936372578173177316784858703613281250000000000000000000000000000. Actually, I want to get the figures 0.000000123899999999999991111038384616893637257817317731678485870361328125. As I used the function, it needs a number in toFixed(), but I don’t want anything to be added. How can I fix this?