I find it hard to control the accuracy of float in JS.
var num1 = 0.60;
var num2 = 0.40;
I want to get the result of (num1- num2)
I have tried many methods, but the result is 0.2 instead of 0.20.
what should I do to keep two decimal places?