Unary plus operators

Synopses

Declared in <bdldfp_decimal.h>

Return a copy of the specified value if the value is not negative zero, and return positive zero otherwise.

Return a copy of the specified value if the value is not negative zero, and return positive zero otherwise.

Return a copy of the specified value.

Add the value of the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

Add the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    Decimal128 lhs,
    long long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    Decimal128 lhs,
    unsigned int rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    Decimal128 lhs,
    unsigned long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    Decimal128 lhs,
    unsigned long long rhs);

Return the sum of the specified lhs and rhs.

Add the value of the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Add the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    Decimal32 lhs,
    long long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    Decimal32 lhs,
    unsigned int rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    Decimal32 lhs,
    unsigned long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    Decimal32 lhs,
    unsigned long long rhs);

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

Add the value of the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Add the specified rhs to the value of the specified lhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    Decimal64 lhs,
    long long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    Decimal64 lhs,
    unsigned int rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    Decimal64 lhs,
    unsigned long rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    Decimal64 lhs,
    unsigned long long rhs);

Add the specified lhs to the value of the specified rhs as described by IEEE‐754 and return the result.

Add the specified lhs to the value of the specified rhs as described by IEEE‐754 and return the result.

Add the specified lhs to the value of the specified rhs as described by IEEE‐754 and return the result.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    long long lhs,
    Decimal128 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    long long lhs,
    Decimal32 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    long long lhs,
    Decimal64 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    unsigned int lhs,
    Decimal128 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    unsigned int lhs,
    Decimal32 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    unsigned int lhs,
    Decimal64 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    unsigned long lhs,
    Decimal128 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    unsigned long lhs,
    Decimal32 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    unsigned long lhs,
    Decimal64 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal128
operator+(
    unsigned long long lhs,
    Decimal128 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal32
operator+(
    unsigned long long lhs,
    Decimal32 rhs);

Return the sum of the specified lhs and rhs.

bdldfp::Decimal64
operator+(
    unsigned long long lhs,
    Decimal64 rhs);

Return Value

  • copy of value if it is not negative zero, otherwise positive zero

  • copy of the specified value

  • sum of the operands

  • sum of the specified lhs and rhs

Parameters

Name

Description

value

operand

lhs

left‐hand operand

rhs

right‐hand operand

Created with MrDocs