Is there a type with bigger capacity than u_long or UInt64 in Swift?
I have a function that takes very big integers to identify a credit card numbe
You can implement your own UInt128 type. Or use NSDecimalNumber
UInt128
NSDecimalNumber
To implement UInt128
struct UInt128 { var low : UInt64 = 0; var high : UInt64 = 0; }
and you can implement operators
infix func + (l: UInt128, r: UInt128) -> UInt128 { // do your work... care with overflow }