WWDC24 SALE: Save 50% on all my Swift books and bundles! >>

128-bit Integer Types

Available from Swift 6.0

Paul Hudson      @twostraws

SE-0425 introduces Int128 and UInt128. I literally have nothing more to say about these, because I think you already know exactly how they work – even the evolution proposal says, "the actual API of the types is uninteresting."

Still, I'd feel guilty if I didn't at least give you a code sample, so here goes:

let enoughForAnybody: Int128 = 170_141_183_460_469_231_731_687_303_715_884_105_727
Save 50% in my WWDC sale.

SAVE 50% To celebrate WWDC24, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Other changes in Swift 6.0…

Download all Swift 6.0 changes as a playground Link to Swift 6.0 changes

Browse changes in all Swift versions

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.