06 2014 档案
SQL float 保留两位小数
摘要:1. SQL 数据库里类型改为numeric,小数位设置成22. 在SQL语句中转换:select convert(字段,numeric(18,2)) AS 字段3. 在DataFormatString的绑定列的属性中设置为
阅读全文
C#判断字符串是否为数字
摘要:string i = Console.ReadLine(); int a=0; if (int.TryParse(i, out a) == false) //判断是否可以转换为整型 { Console.WriteLine("False"); } else { Console.WriteLine("T...
阅读全文
浙公网安备 33010602011771号