BloombergLP::bdldfp::DecimalUtil::quantum

quantum overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for quantum.

static
int
quantum(Decimal128 value);
» more...

Return an integer equal to the exponent field in the specified value. Each decimal floating point number is a representation of the ideal form s * (10 ** e), where s is significand and e is exponent. This function returns that exponent value. The behavior is undefined if value is NaN or value is infinity.

static
int
quantum(Decimal32 value);
» more...

Same as the related overload above for quantum.

static
int
quantum(Decimal64 value);
» more...