ParseInt

Transferred from: nofollow "> http://blog.csdn.net/z9061/article/details/7541826

< span style="font-family:'Courier New';font-size:16px;">< span style="line-height:20px;font-size:13px;"> ParseInt( str:String,radix:uint = 0), Converts a string to an integer. If the string specified in the parameter cannot be converted to a number, this function returns Nan. Strings starting with 0x are interpreted as hexadecimal digits. Unlike earlier versions of ActionScript, integers starting with 0 are not interpreted as octal numbers. You must specify a cardinality of 8 to interpret as an octal number. Whitespace and 0 before valid integers and non numeric characters after them are ignored.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>