How you can do that 🙂

$(#task).val(parseFloat(Math.round(YOUR_VARIABLE * 100) / 100).toFixed(2));