我有什麼用,而不是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