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

Synopsis

Declared in <bdldfp_decimalutil.h>

static
bool
sameQuantum(
    Decimal32 x,
    Decimal32 y);

Description

Return true if the specified x and y values have the same quantum exponents, and false otherwise. 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

Name

Description

x

first operand

y

second operand

Created with MrDocs