BloombergLP::bdldfp::DecimalImpUtil::makeDecimalRaw32

Create a ValueType32 from significand and exponent.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType32
makeDecimalRaw32(
    int significand,
    int exponent);

Description

The behavior is undefined unless abs(significand) <= 9,999,999 and -101 <= exponent <= 90.

Return Value

a ValueType32 from significand and exponent

Parameters

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