How to do round off to 2 decimal places in Mustache

Viewed 57

Below is the line which gives the result, which I want to round off to 2 decimal places. I tried Math.round(), but it is not supported in Mustache

$('#amt').val(total_amt - parseFloat($('input[name="first-amt"]').val()))

Can anyone please help with this?

0 Answers
Related