Return the exponent field of the specified value.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
int
quantum(Decimal32 value);

Description

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.

Return Value

exponent field of value

Parameters

Name

Description

value

decimal value whose exponent is returned

Created with MrDocs