scaleb

If the first operand is infinite then that operand is returned, otherwise the result is the first operand modified by adding the value of the second operand to its exponent.

The second operand must be a finite integer (<= int.max && >= int.min) with an exponent of zero.

Remarks: The result may overflow or underflow.

D
scaleb
(
D
)
(
in D left
,
in D right
)

Meta

Standards

Implements the 'scaleb' function in the specification. (p. 48)

Flags: INVALID_OPERATION, UNDERFLOW, OVERFLOW.