網路城邦
上一篇 回創作列表 下一篇  字體:
[C#] string to float, int?
2013/09/19 09:50:51瀏覽5698|回應0|推薦0
[C#] string to float, int?
1.string to float?
    float.Parse(string)
    Double.Parse(string)

2.string to int?
    方法一: int numVal = Int32.Parse("-105");
    方法二:Convert.ToInt32("String");
http://msdn.microsoft.com/zh-tw/library/bb397679.aspx





( 知識學習語言 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=stopstopstop&aid=8606501