摘要:
数据库中的numeric类型,,[SumMoney] [numeric](18, 2) ,标识总的18位,小数点后两位。在C#中对应decimal类型。ASP.NET中关于decimal的格式验证。计算decimal totleMoney = decimal.Parse((double.Parse(txtACount.ToString().Trim()) * 78.21 * int.Parse(txtBCount.Text.ToString().Trim())).ToString()); 阅读全文