BloombergLP::bdldfp::operator>

Return true if the specified lhs has a greater value than the specified rhs and false otherwise.

Synopsis

Declared in <bdldfp_decimal.h>

bool
operator>(
    Decimal32 lhs,
    Decimal32 rhs);

Description

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

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

This operation stores the value of the macro EDOM into errno if either or both operands are signaling NaN.

Return Value

true if the specified lhs has a greater value than the specified rhs and false otherwise

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand