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