This repository provides integer types of arbitrary width implemented in 100% pure Swift. The underlying representation is in base 2^64, using Array<UInt64>.
This module is handy when you need an integer type that’s wider than UIntMax, but you don’t want to add The GNU Multiple Precision Arithmetic Library as a dependency.
Two big integer types are included: BigUInt and BigInt, the latter being the signed variant. Both of these are Swift structs with copy-on-write value semantics, and they can be used much like any other integer type.

Leave a Reply
You must be logged in to post a comment.