Less‐than‐or‐equal operators

Synopses

Declared in <bdldfp_decimal.h>

Return true if the specified lhs has a value less than or equal the value of the specified rhs and false otherwise. The value of a Decimal32 object lhs is less than or equal to the value of an object rhs if the compareQuietLessEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of lhs to be less or equal to that of rhs. In other words, lhs is less or equal than rhs if:

bool
operator<=(
    Decimal32 lhs,
    Decimal32 rhs);

Return true if the specified lhs has a value less than or equal the value of the specified rhs and false otherwise. The value of a Decimal64 object lhs is less than or equal to the value of an object rhs if the compareQuietLessEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of lhs to be less or equal to that of rhs. In other words, lhs is less or equal than rhs if:

bool
operator<=(
    Decimal64 lhs,
    Decimal64 rhs);

Return true if the specified lhs has a value less than or equal the value of the specified rhs and false otherwise. The value of a decimal object lhs is less than or equal to the value of an object rhs if the compareQuietLessEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of lhs to be less or equal to that of rhs. In other words, lhs is less or equal than rhs if:

bool
operator<=(
    Decimal32 lhs,
    Decimal64 rhs);

Decimal arithmetic/comparison operation: bool operator<=.

bool
operator<=(
    Decimal64 lhs,
    Decimal32 rhs);

Return true if the specified lhs has a value less than or equal the value of the specified rhs and false otherwise. The value of a Decimal128 object lhs is less than or equal to the value of an object rhs if the compareQuietLessEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of lhs to be less or equal to that of rhs. In other words, lhs is less or equal than rhs if:

bool
operator<=(
    Decimal128 lhs,
    Decimal128 rhs);

Return true if the specified lhs has a value less than or equal the value of the specified rhs and false otherwise. The value of a decimal object lhs is less than or equal to the value of an object rhs if the compareQuietLessEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representation of lhs to be less or equal to that of rhs. In other words, lhs is less or equal than rhs if:

bool
operator<=(
    Decimal32 lhs,
    Decimal128 rhs);

Decimal arithmetic/comparison operation: bool operator<=.

bool
operator<=(
    Decimal128 lhs,
    Decimal32 rhs);

Decimal arithmetic/comparison operation: bool operator<=.

bool
operator<=(
    Decimal64 lhs,
    Decimal128 rhs);

Return true if lhs is less than or equal to rhs, and false otherwise.

bool
operator<=(
    Decimal128 lhs,
    Decimal64 rhs);

Created with MrDocs