How to prevent round off of parseFloat
var input = "9999999999999999.99"
var num = +(parseFloat(input).toFixed())
document.getElementById("demo").innerHTML = num;
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ranjit PowarPosted Sep 27, 2018, 7:00 AM