BloombergLP::bdldfp::DecimalUtil::multiplyByPowerOf10

Same as the related overload above for multiplyByPowerOf10.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
Decimal64
multiplyByPowerOf10(
    Decimal64 value,
    int exponent);

Return Value

value multiplied by ten raised to exponent

Parameters

NameDescription
valuedecimal value to scale
exponentpower of ten applied to value