The OpenD Programming Language

BigInt.this

Construct a BigInt from a built-in integral type.

  1. this(Range s)
  2. this(Range s)
  3. this(bool isNegative, Range magnitude)
  4. this(T x)
    struct BigInt
    pure nothrow @safe
    this
    (
    T
    )
    (
    T x
    )
  5. this(T x)

Examples

ulong data = 1_000_000_000_000;
auto bigData = BigInt(data);
assert(bigData == BigInt("1_000_000_000_000"));

Meta