Unary minus operators

Synopses

Declared in <bdldfp_decimal.h>

Return the result of applying unary minus to the specified value.

Return the result of applying the unary ‐ operator to the specified value as described by IEEE‐754, essentially reversing the sign bit.

Return the result of applying unary minus to the specified value.

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

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

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

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Subtract the specified rhs from the value of the specified lhs as described by IEEE‐754 and return a reference to this object.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return the difference of the specified lhs minus rhs.

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

Return Value

  • the negated value of value

  • difference of the operands

  • difference of the specified lhs minus rhs

  • reference to this object

Parameters

Name

Description

value

operand

lhs

left‐hand operand

rhs

right‐hand operand

Created with MrDocs