[#BloombergLP-bdldfp-operator_lt-0a2] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator< :relfileprefix: ../../ :mrdocs: Return `true` if the specified `lhs` has a value less than the specified `rhs` and `false` otherwise. == Synopsis Declared in `<bdldfp_decimal.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator<( xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] lhs, xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] rhs); ---- == Description The value of a `Decimal128` 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: * 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` 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 value less than the specified `rhs` and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand operand | *rhs* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#