BigInt.opEquals

Implements BigInt equality test with other BigInt's and built-in numeric types.

  1. bool opEquals(BigInt y)
    struct BigInt
    const pure @nogc @safe
    bool
    opEquals
    ()
    (
    auto ref const BigInt y
    )
  2. bool opEquals(T y)
  3. bool opEquals(T y)

Examples

// Note that when comparing a BigInt to a float or double the
// full precision of the BigInt is always considered, unlike
// when comparing an int to a float or a long to a double.
assert(BigInt(123456789) != cast(float) 123456789);

Meta