piyush sharma

piyush sharma

  • 1.7k
  • 251
  • 5.6k

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;

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)