摘要: double a = 1.1478;Math.Celling(a); 向上取整,结果为2Math.Float(a); 向下取整,结果为1Math.Round(a,2); 保留两位小数的奇进偶舍 结果为1.15 阅读全文
posted @ 2014-02-24 22:00 DayDreamInGIS 阅读(240) 评论(0) 推荐(0) 编辑
摘要: #region 日期day自动加1 /// /// 将当前日期加1天 /// /// 输入日期,如20120101 /// public static string dateAdd1(string str) { //内容分解 int year = int.Parse(str.Substring(0, 4)); int month = int.Parse(str.Substring(4, 2)); int ... 阅读全文
posted @ 2014-02-24 10:27 DayDreamInGIS 阅读(878) 评论(0) 推荐(0) 编辑