📅  最后修改于: 2022-03-11 15:03:27.558000             🧑  作者: Mango
var subtotal = parseFloat(val) + parseFloat(tax) + parseFloat(imp) + parseFloat(env);
var subtotal = subtotal.toFixed(2); //two decimal places