BloombergLP::bdldfp::DecimalUtil::multiplyByPowerOf10

multiplyByPowerOf10 overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for multiplyByPowerOf10.

static
Decimal128
multiplyByPowerOf10(
    Decimal128 value,
    int exponent);
» more...

Return value multiplied by ten raised to exponent.

static
Decimal32
multiplyByPowerOf10(
    Decimal32 value,
    int exponent);
» more...

Same as the related overload above for multiplyByPowerOf10.

static
Decimal64
multiplyByPowerOf10(
    Decimal64 value,
    int exponent);
» more...

Return Value

value multiplied by ten raised to exponent

Parameters

NameDescription
valuedecimal value to scale
exponentpower of ten applied to value