Efficiently calculates x * 2n.
scalbn handles underflow and overflow in the same fashion as the basic arithmetic operators.
assert(scalbn(0x1.2345678abcdefp0, 999) == 0x1.2345678abcdefp999); assert(scalbn(-real.infinity, 5) == -real.infinity);
See Implementation
Efficiently calculates x * 2n.
scalbn handles underflow and overflow in the same fashion as the basic arithmetic operators.