BloombergLP::bdldfp::DecimalUtil::sameQuantum

sameQuantum overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the overload taking Decimal64.

static
bool
sameQuantum(
    Decimal128 x,
    Decimal128 y);
» more...

Return true if x and y have the same quantum exponents.

static
bool
sameQuantum(
    Decimal32 x,
    Decimal32 y);
» more...

Same as the related overload above for sameQuantum.

static
bool
sameQuantum(
    Decimal64 x,
    Decimal64 y);
» more...

Return Value

true if x and y have the same quantum exponents

Parameters

NameDescription
xfirst operand
ysecond operand