I want to do a subtraction with javascript, but I have problems subtracting with Decimal numbers for example:
Float: function () { var One = parseFloat (1); var Dos = parseFloat (0.65); RR var = (One - Two); $ ('# txtResultadoFlotacion'). val (RR); }
CORRECT REST
and debugging I get this:
in RR has a value of 0.35 which is correct.
INCORRECT REST:
But if I want to do a subtraction with a decimal value between the range of 0.65 to 0.99, it returns the following:
what I would expect is that RR = 0.30 HELP, please