Search Results


2 years ago by mamdouh

I am trying to add two floating point numbers var sum = parseFloat(a) + parseFloat(b); How do i set the decimal precision of the result to one? Eg: 0.1+0.2 should give 0.3 . . .

  • 0
  • 0
  • 461