isGreaterOrEqual

Compares two _decimal operands. This operation is silent, no exception flags are set and no exceptions are thrown.

  1. bool isGreater(D1 x, D2 y)
  2. bool isGreaterOrEqual(D1 x, D2 y)
    @IEEECompliant("compareQuietGreaterEqual", 24)
    bool
    isGreaterOrEqual
    (
    D1
    D2
    )
    (
    auto const ref D1 x
    ,
    auto const ref D2 y
    )
    if (
    isDecimal!(D1, D2)
    )
  3. bool isGreaterOrUnordered(D1 x, D2 y)
  4. bool isLess(D1 x, D2 y)
  5. bool isLessOrEqual(D1 x, D2 y)
  6. bool isLessOrUnordered(D1 x, D2 y)
  7. bool isUnordered(D1 x, D2 y)

Return Value

Type: bool

true if the specified condition is satisfied Notes: By default, comparison operators will throw InvalidOperationException or will set the ExceptionFlags.invalidOperation context flag if a trap is not set. The equivalent functions are silent and will not throw any exception (or will not set any flag) if a NaN value is encountered.

Examples

assert(isUnordered(decimal32.nan, decimal64.max));
assert(isGreater(decimal32.infinity, decimal128.max));
assert(isGreaterOrEqual(decimal32.infinity, decimal64.infinity));
assert(isLess(decimal64.max, decimal128.max));
assert(isLessOrEqual(decimal32.min_normal, decimal32.min_normal));

Meta