[#BloombergLP-bdldfp-operator_plus-02b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator+ :relfileprefix: ../../ :mrdocs: Add the specified `lhs` to the value of the specified `rhs` 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+( int lhs, xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] rhs); ---- == Description * If `rhs` is signaling NaN, then store the value of the macro `EDOM` into `errno` and return a NaN. * Otherwise if `rhs` object is NaN, then return a NaN. * Otherwise if `rhs` is infinity, then return infinity. * Otherwise if the sum 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 sum of `lhs` and the number represented by `rhs`. [.small]#Created with https://www.mrdocs.com[MrDocs]#