Create a Decimal64 from raw significand and exponent.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal64
makeDecimalRaw64(
    int significand,
    int exponent);

Description

Create a Decimal64 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,999,999,999 <= significand <= 9,999,999,999,999,999 and ‐398 <= exponent <= 369.

Return Value

Decimal64 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