javascript - jquery multiplication with broken numbers -
i coded price * qty function jquery not responding daily prices. response decimal numbers.
here code;
var qty = "3"; var price = "1.20"; var res = (qty*price); $("#boxres").html(res);
they result 3.5999999999999996
i want 3.6 how can fix ?
Comments
Post a Comment