0

I have got a value of 17.439702 .

I want to add 0.222 to the above value .

I was doing it this way

var lat = '17.439702';

 lat = parseFloat(lat)+parseFloat(0.222);

console.log(lat );

But the end result i am getting is

17.661702000000002 

But where as i am expecting it as

17.661702

Please tell me how to resolve this

Pawan
  • 29,827
  • 94
  • 242
  • 415

0 Answers0