My javascript code is:
var a = 0.15;
var r = parseFloat(a.toFixed(1));
console.log(r)This is not getting converted to 0.2.
Whereas other numbers like 0.25 are getting converted to 0.3,
0.45 to 0.5, 0.55 to 0.6, 0.65 to 0.7, 0.85 to 0.9 and so on.
Any solution to resolve this?
 
     
    