piyush sharma

piyush sharma

  • 1.6k
  • 251
  • 4.1k

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)