What is BigInt?

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.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/attaswift/BigInt
  • Resource Maker: attaswift
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • iOS Versions Supported: iOS 9.0+, iOS 10.0+, iOS 11.0+, iOS 12.0+
  • CocoaPods: BigInt
  • Carthage: attaswift/BigInt
  • Swift Package Manager: https://github.com/attaswift/BigInt.git