[#BloombergLP-bdldfp-operator_minus-02a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator‐ :relfileprefix: ../../ :mrdocs: Subtract the value of the specified `rhs` from the value of the specified `lhs` as described by IEEE‐754 and return the result. == Synopsis Declared in `<bdldfp_decimal.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdldfp/Decimal32.adoc[bdldfp::Decimal32] operator‐( xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] lhs, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] rhs); ---- == Description * If either of `lhs` or `rhs` is signaling NaN, then store the value of the macro `EDOM` into `errno` and return a NaN. * Otherwise if either of `lhs` or `rhs` is NaN, return a NaN. * Otherwise if `lhs` and the `rhs` have infinity values of the same sign, store the value of the macro `EDOM` into `errno` and return a NaN. * Otherwise if `lhs` and the `rhs` have infinity values of differing signs, then return `lhs`. * Otherwise if the subtracting of `lhs` and `rhs` has an absolute value that is larger than `std::numeric_limits<Decimal32>::max()` then store the value of the macro `ERANGE` into `errno` and return infinity with the same sign as that result. * Otherwise return the result of subtracting the value of `rhs` from the value of `lhs`. [.small]#Created with https://www.mrdocs.com[MrDocs]#