我有什么用,而不是ToInt32,转换长串号值“10000000001”为整数,所以这种方式仅限于10位数字: string str1 = "1000000000";
string str2 = "1000000000";
int a = Convert.ToInt32(str1);
int b = Convert.ToInt32(str2);
int
let hexString = "0x42f9b6c9"
let toInt = Int32(truncatingBitPattern: strtoul(self, nil, 16))
let toFloat = Float(bitPattern: UInt32(self))
结果不工作:124.857 let hexString = "0xc2f9b6c9"
let toInt = I