BloombergLP::bdldfp::DecimalUtil::decompose

decompose overloads

Synopses

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 value into sign, significand, and exponent.

static
int
decompose(
    int* sign,
    unsigned int* significand,
    int* exponent,
    Decimal32 value);
» more...

Return Value

floating-point classification of value

Parameters

NameDescription
signreceives +1 or -1 for the sign
significandreceives the significand
exponentreceives the decimal exponent
valuedecimal value to decompose