decompose overloads
Declared in <bdldfp_decimalimputil.h>
Decompose the specified ValueType128 into sign, significand, and exponent.
static
int
decompose(
int* sign,
Uint128* significand,
int* exponent,
ValueType128 value);
» more...
Decompose the specified ValueType64 into sign, significand, and exponent.
static
int
decompose(
int* sign,
bsls::Types::Uint64* significand,
int* exponent,
ValueType64 value);
» more...
Decompose the specified decimal value into the components of the decimal floating-point format and load the result into the specified sign, significand and exponent such that value is equal to sign * significand * (10 ** exponent). The special values infinity and NaNs are decomposed to sign, exponent and significand parts, even though they don't have their normal meaning (except sign). That is those specific values cannot be restored using these parts, unlike the finite ones. Return the integer value that represents the floating point classification of the specified value as follows:
static
int
decompose(
int* sign,
unsigned int* significand,
int* exponent,
ValueType32 value);
» more...