BloombergLP::bdldfp::DecimalImpUtil_IntelDfp::scaleB

Multiply a decimal value by ten raised to an exponent.

Synopsis

Declared in <bdldfp_decimalimputil_inteldfp.h>

static
DecimalImpUtil_IntelDfp::ValueType32
scaleB(
    ValueType32 value,
    int exponent);

Description

Return the result of multiplying the specified value by ten raised to the specified exponent. The quantum of value is scaled according to IEEE 754's scaleB operations. The result is unspecified if value is NaN or infinity.

Return Value

value scaled by 10 raised to exponent

Parameters

NameDescription
valuedecimal value to scale
exponentpower of ten applied to value