BloombergLP::bdldfp::DecimalUtil::makeDecimal64

makeDecimal64 overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Return a Decimal64 with the specified significand and exponent.

static
Decimal64
makeDecimal64(
    int significand,
    int exponent);
» more...

Same as the overload taking int.

static
Decimal64
makeDecimal64(
    long long significand,
    int exponent);
» more...

Same as the overload taking int.

static
Decimal64
makeDecimal64(
    unsigned int significand,
    int exponent);
» more...

Same as the overload taking int.

static
Decimal64
makeDecimal64(
    unsigned long long significand,
    int exponent);
» more...

Return Value

Decimal64 value with the specified significand and exponent

Parameters

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