What's New

v4.0.2

2023-07-16T06:44:42Z

Some improvements ported from Numberick.

  • #151 Improved Int strides
  • #150 isPowerOf2 should not return true for signed min
  • #149 Single perfect radix encoding specialization

Large number arithmetic in Swift.

Package Swift iOS iPadOS Mac Catalyst macOS tvOS watchOS
4.0.2 5.8 16.4 16.4 16.4 13.3 16.4 9.4

ANKCoreKit (Sources, Tests, Benchmarks)

Models, protocols, extensions and utilities underpinning this package.

Protocols

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 = ANKFullWidth< Int128, UInt128>
typealias UInt256 = ANKFullWidth<UInt128, UInt128>

A decorative, width agnostic, sign-and-magnitude, numeric integer.

🎀Decorative
🪐Sign & Magnitude
💯Numeric
🚀Single Digit Arithmetic
typealias Magnitude = UInt
let min = ANKSigned(Magnitude.max, as: FloatingPointSign.minus)
let max = ANKSigned(Magnitude.max, as: FloatingPointSign.plus )

Check out my other projects

Numberick is a more pragmatic solution to the same problem.

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 01:40:39 GMT-0900 (Hawaii-Aleutian Daylight Time)