S
sonic
Hello,
What is the correct way of performing this substraction in JS.
var a = '29.33'; ( or 29.33 )
var b = '0.01'; ( or 0.01 )
var result = a - b;
( result = 29.319999999999996; )
my result is rounded off in the way floats would round off :/
What is the correct way of performing this substraction in JS.
var a = '29.33'; ( or 29.33 )
var b = '0.01'; ( or 0.01 )
var result = a - b;
( result = 29.319999999999996; )
my result is rounded off in the way floats would round off :/