var ExpenseValue = (document.getElementById("edt_0_Expense").value).toString()
Point = ExpenseValue.indexOf(".");
//edt_0_Expense.value;
最后=点+2;
圆=点+3;
最后值 = parseInt(expensevalue.substr(last,1));
if (parseInt(expensevalue.substr(round,1)) >= 5)
最后值 = parseInt(expensevalue.substr(last,1)) + 1;
expensevalue=expensevalue.substr(0,last)+lastvalue.toString();
第三位小数四舍五入
或者用库函数
newexpensevalue=parseFloat(Math.round(expensevalue*100))/100;