piyush sharma

piyush sharma

  • 1.4k
  • 339
  • 12k

How to prevent round off of parseFloat

Sep 27 2018 5:43 AM
How to prevent round off of parseFloat
 
var input = "9999999999999999.99"
var num = +(parseFloat(input).toFixed())
document.getElementById("demo").innerHTML = num;

Answers (1)