BigUInt

    An arbitary precision unsigned integer type, also known as a “big integer”.

    BigUInt.swift:16
    struct BigUInt

    Operations on big integers never overflow, but they may take a long time to execute. The amount of memory (and address space) available is the only constraint to the magnitude of these numbers.

    This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper around Array<UInt64>. (In fact, BigUInt only uses an array if there are more than two digits.)

    Citizens in BigInt

    Conformances

    Types

    Typealiases

    • typealias Stride

      A type that can represent the distance between two values ofa BigUInt.

    • typealias Word

      The type representing a digit in BigUInt’s underlying number system.

    Type members

    Instance members

    Type features

    Instance features