gate_s

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年7月4日

摘要: 第一种方法:string na="1000.53";int a=int.Parse(na.Substring(0,na.IndexOf('.')));//返回值a=1000第二种方法:string na = "100.6";Console.WriteLine(Convert.ToInt32 (Mat... 阅读全文
posted @ 2014-07-04 09:34 gate_s 阅读(5098) 评论(0) 推荐(1) 编辑