Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

osc1440/AwesomeNumbersKit

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

404 Commits
404 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Important

The development of this project has moved over to Numberick.

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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.