Create a Decimal32 from raw significand and exponent.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal32
makeDecimalRaw32(
    int significand,
    int exponent);

Description

Create a Decimal32 object representing a decimal floating point number consisting of the specified significand and exponent, with the sign given by the significand (if signed). The behavior is undefined unless ‐9,999,999 <= significand <= 9,999,999 and ‐101 <= exponent <= 90.

Return Value

Decimal32 value with the specified significand and exponent

Parameters

Name

Description

significand

coefficient of the decimal value

exponent

power of ten applied to significand

Created with MrDocs