[#BloombergLP-bdldfp-DecimalImpUtil-greater-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::greater
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `lhs` has a greater value than the specified `rhs` and `false` otherwise&period; The value of a `Decimal64` object `lhs` is greater than that of an object `rhs` if the `compareQuietGreater` operation (IEEE&hyphen;754 defined, non&hyphen;total ordering comparison) considers the underlying IEEE representation of `lhs` to be greater than of that of `rhs`&period; In other words, `lhs` is greater than `rhs` if&colon;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
greater(
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] lhs,
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] rhs);
----

== Description

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

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


[.small]#Created with https://www.mrdocs.com[MrDocs]#
