Large number arithmetic in Swift.
Package | Swift | iOS | iPadOS | Mac Catalyst | macOS | tvOS | watchOS |
---|---|---|---|---|---|---|---|
0.6.2 | 5.7 | 13.0 | 13.0 | 13.0 | 10.15 | 13.0 | 6.0 |
1.1.0 | 5.8 | 16.4 | 16.4 | 16.4 | 13.3 | 16.4 | 9.4 |
A composable, large, fixed-width, two's complement, binary integer.
🧩 | Composable |
💕 | Two's Complement |
🏰 | Fixed Width Integer |
📖 | Trivial UInt Collection |
🚀 | Single Digit Arithmetic |
typealias Int256 = FullWidth< Int128, UInt128>
typealias UInt256 = FullWidth<UInt128, UInt128>
A decorative, width agnostic, sign-and-magnitude, numeric integer.
🎀 | Decorative |
🪐 | Sign & Magnitude |
💯 | Numeric |
🚀 | Single Digit Arithmetic |
typealias Magnitude = UInt
let min = Signed(Magnitude.max, as: Sign.minus)
let max = Signed(Magnitude.max, as: Sign.plus )
ANKFoundation (Sources, Tests, Benchmarks)
Models, protocols, extensions and utilities underpinning this package.
- ANKBigEndianTextCodable
- ANKBinaryInteger
- ANKBitPatternConvertible<BitPattern>
- ANKContiguousBytes
- ANKCoreInteger
- ANKFixedWidthInteger
- ANKIntOrUInt
- ANKLargeBinaryInteger<Digit>
- ANKLargeFixedWidthInteger<Digit>
- ANKMutableContiguousBytes
- ANKSignedFixedWidthInteger
- ANKSignedInteger
- ANKSignedLargeBinaryInteger<Digit>
- ANKSignedLargeFixedWidthInteger<Digit>
- ANKTrivialContiguousBytes
- ANKUnsignedFixedWidthInteger
- ANKUnsignedInteger
- ANKUnsignedLargeBinaryInteger<Digit>
- ANKUnsignedLargeFixedWidthInteger<Digit>
- ANKWords