Swiftpack.co -  Boilertalk/BigInt.swift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Boilertalk/BigInt.swift
A BigInt library for Swift
.package(url: "https://github.com/Boilertalk/BigInt.swift.git", from: "1.0.0")

CI Status Version License Platform Carthage compatible

:alembic: BigInt

:warning: :warning: :warning: This fork will not be maintained any more in favour of the original library which is now also officially supported on Linux and the newest Swift version. Please switch to the original library ASAP :warning: :warning: :warning:

This library is a fork of BigInt, a BigInt implementation for Swift.

Based on the original library, this fork doesn't have any dependencies, supports Swift 4.1 on all Platforms (removed Swift Shim calls for compatibility between different versions) and aims to implement all major calculations as efficient as possible.

Example

For examples have a look at the original library readme or look through the source code.

Installation

CocoaPods

BigInt.swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BigInt.swift'

Carthage

BigInt.swift is compatible with Carthage, a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To install it, simply add the following line to your Cartfile:

github "Boilertalk/BigInt.swift"

Swift Package Manager

BigInt.swift is compatible with Swift Package Manager v4 (Swift 4 and above). Simply add it to the dependencies in your Package.swift.

dependencies: [
    .package(url: "https://github.com/Boilertalk/BigInt.swift.git", from: "1.0.0")
]

After which you can import it in your .swift files.

import BigInt

Author

Károly Lőrentey for most of the actual implementation (everything until #7f58885d3261d7246aa8820b61273d5b7efdca09)

The awesome guys at Boilertalk :alembic: for all additions and compatibility modifications after #2d01b8dab9eb7cd5332b980067c5fa6a6d16427b

License

BigInt is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 2
Last commit: 3 years ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API