摘要: 数据库中的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()); 阅读全文
posted @ 2013-10-24 09:55 源起 阅读(4379) 评论(0) 推荐(0) 编辑