BloombergLP::bdldfp::DecimalImpUtil_IntelDfp::makeDecimalRaw64

Create a raw ValueType64 from a significand and exponent.

Synopsis

Declared in <bdldfp_decimalimputil_inteldfp.h>

static
DecimalImpUtil_IntelDfp::ValueType64
makeDecimalRaw64(
    unsigned long long significand,
    int exponent);

Description

Create a ValueType64 object representing a decimal floating point number consisting of the specified significand and exponent, with the sign given by significand. The behavior is undefined unless abs(significand) <= 9,999,999,999,999,999 and -398 <= exponent <= 369.

Return Value

the corresponding raw decimal64 value

Parameters

NameDescription
significandinteger significand
exponentdecimal exponent