How to guarantee a 64‑bit integer across platforms in Swift

1 Answer

0 votes
import Foundation

let x: Int64  = -123_456_789_012_345
let y: UInt64 = 123_456_789_012_345

print("x = \(x)")
print("y = \(y)")



/*
run:

x = -123456789012345
y = 123456789012345

*/

 



answered Feb 23 by avibootz
...