decompose overloads
Declared in <bdldfp_decimalutil.h>
Same as the related overload above for decompose.
static
int
decompose(
int* sign,
Uint128* significand,
int* exponent,
Decimal128 value);
» more...
Same as the overload taking Decimal32.
static
int
decompose(
int* sign,
bsls::Types::Uint64* significand,
int* exponent,
Decimal64 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,
Decimal32 value);
» more...