BloombergLP::bdldfp::DecimalImpUtil::greaterEqual

Return true if lhs is greater than or equal to rhs.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
bool
greaterEqual(
    ValueType32 lhs,
    ValueType32 rhs);

Description

The value of a Decimal64 object lhs is greater or equal to a Decimal64 object rhs if the compareQuietGreaterEqual operation (IEEE-754 defined, non-total ordering comparison ) considers the underlying IEEE representation of lhs to be greater or equal to that of rhs. In other words, lhs is greater than or equal to rhs if:

* neither lhs nor rhs are NaN, or * lhs and rhs are both zero (positive or negative), or * both lhs and rhs are negative infinity, or * lhs is positive infinity, or * lhs and rhs both represent a real number and the real number of lhs is greater or equal to that of rhs

If either or both operands are signaling NaN, store the value of the macro EDOM into errno and return false.

Return Value

true if lhs is greater than or equal to rhs

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand