I have this function:
function doCalc() {
var total = 0;
$('tr').each(function() {
$(this).find('span.amount').html($('input:eq(0)', this).val() * $('input:eq(1)', this).val());
});
}
$(this).keyup(doCalc);
and for example if I multiply 12 * 1.90 it always shows 22.799999999999997 How to format it to 22.80 ? Thanks in advance