全球旧事资料 分类
②Co
vertStri
gToNumber方法
功能:将大于零的字符串转换为32位整数或者64为浮点数,并指明转换是否成功.
方法原型提供两种重载形式:
Private
bool
Co
vertStri
gToNumberstri
g
strbool
mustGreatTha
Zeroouti
tresult
Private
bool
Co
vertStri
gToNumberstri
g
strbool
mustGreatTha
Zerooutdoubleresult
其中,str为被转换的字符串,mustGreatTha
Zero为是否有必须大于零的要求,result
为转换后的32位整数或者64位浮点数.
具体代码如下:
精彩文档
fusi
gSystemusi
gSystemCollectio
sGe
ericusi
gSystemCompo
e
tModelusi
gSystemDatausi
gSystemDrawi
gusi
gSystemTextusi
gSystemWi
dowsForms
实用标准文案

amespaceSuperCalculator
publicpartialclassFormMai
Form
publicFormMai
I
itializeCompo
e
tthisStartPositio
FormStartPositio
Ce
terScree

summary将字符串转换为32位整数或64位浮点数summaryparam
ame
好听全球资料 返回顶部