BigInt.opEquals

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

  1. bool opEquals(BigInt y)
  2. bool opEquals(T y)
    struct BigInt
    const pure nothrow @nogc @safe
    bool
    opEquals
    (
    T
    )
    (
    const 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