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;