BloombergLP::bdldfp::DecimalImpUtil::makeDecimalRaw128

Create a ValueType128 from significand and exponent.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType128
makeDecimalRaw128(
    unsigned long long significand,
    int exponent);

Description

The behavior is undefined unless -6176 <= exponent <= 6111.

Return Value

a ValueType128 from significand and exponent

Parameters

NameDescription
significandcoefficient of the decimal value
exponentpower of ten applied to significand