[#BloombergLP-bdldfp-DecimalImpUtil-less-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::less :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `lhs` has a value less than the specified `rhs` and `false` otherwise. The value of a `Decimal64` object `lhs` is less than that of an object `rhs` if the `compareQuietLess` operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of `lhs` to be less than of that of `rhs`. In other words, `lhs` is less than `rhs` if: == Synopsis Declared in `<bdldfp_decimalimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool less( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] lhs, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] rhs); ---- == Description * neither `lhs` nor `rhs` are NaN, or * `lhs` is zero (positive or negative) and `rhs` is positive, or * `rhs` is zero (positive or negative) and `lhs` negative, or * `lhs` is not positive infinity, or * `lhs` is negative infinity and `rhs` is not, or * `lhs` and `rhs` both represent a real number and the real number of `lhs` is less than that of `rhs` If either or both operands are signaling NaN, store the value of the macro `EDOM` into `errno` and return `false`. Return `true` if `lhs` is less than `rhs`. [.small]#Created with https://www.mrdocs.com[MrDocs]#