BloombergLP::bdldfp::DecimalImpUtil::sameQuantum

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

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
bool
sameQuantum(
    ValueType32 x,
    ValueType32 y);

Description

If both arguments are NaN or both arguments are infinity, they have the same quantum exponents. Note that if exactly one operand is NaN or exactly one operand is infinity, they do not have the same quantum exponents.

Return Value

true if x and y have the same quantum exponents

Parameters

NameDescription
xfirst value
ysecond value