摘要: 如何把字符“23.00”转成int型! convert,parse,都抱错! “Input string was not in a correct format.”------解决方案--------------------------------------------------------如果需要考虑四舍五入可以先转成double string s= "23.00 "; double dTemp=double.Parse(s); int iTemp=Convert.ToInt32(dTemp); 如果不需要,就可以用 string s = "23.00 &q 阅读全文
posted @ 2012-02-06 17:40 Yaoquan.Luo 阅读(503) 评论(0) 推荐(0)