Peterluo的技术博客

     ------自助者天助之,每天进步一点
摘要: 今天风痕在群里问了个问题:给如下这三种定义decimal类型的变量赋值有什么不同?usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceDecimal{classProgram{staticvoidMain(string[]args){decimaldRebate1=newdecimal(1);decimaldRebate2=Convert.ToDecimal(1);decimaldRebate3=1M;Console.WriteLine("dRebate1:{0} 阅读全文
posted @ 2012-08-15 00:11 linjun 阅读(33515) 评论(0) 推荐(1) 编辑