BigInt.opBinary

Implements binary operators between BigInt's and built-in integers.

  1. BigInt opBinary(T y)
  2. BigInt opBinary(T y)
    struct BigInt
    pure nothrow @safe const return scope
    opBinary
    (
    string op
    T
    )
    (
    T y
    )
    if (
    (
    op == "+" ||
    op == "*"
    ||
    op == "-"
    ||
    op == "/"
    ||
    op == "|"
    ||
    op == "&"
    ||
    op == "^"
    ||
    op == ">>"
    ||
    op == "<<"
    ||
    op == "^^"
    )
    &&
    )
  3. auto opBinary(T y)

Examples

auto x = BigInt("123");
x *= 300;
assert(x == BigInt("36900"));

Meta