[#BloombergLP-bdldfp-DecimalImpUtil_IntelDfp-lessEqual-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp.adoc[DecimalImpUtil&lowbar;IntelDfp]::lessEqual
:relfileprefix: ../../../
:mrdocs:

Return whether `lhs` is less than or equal to `rhs`&period;

== Synopsis

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

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

== Description

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

&ast; neither `lhs` nor `rhs` are NaN, or &ast; `lhs` and `rhs` are both zero (positive or negative), or &ast; both `lhs` and `rhs` are positive infinity, or &ast; `lhs` is negative infinity, or &ast; `lhs` and `rhs` both represent a real number and the real number of `lhs` is less 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`&period;

== Return Value

`true` if `lhs` is less than or equal to `rhs`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand decimal value
| *rhs*
| right&hyphen;hand decimal value
|===


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