scalbn

fnreal scalbn(real x, int n) @safe pure nothrow @nogc

Efficiently calculates x * 2n.

scalbn handles underflow and overflow in the same fashion as the basic arithmetic operators.

x scalb(x)
+∞ +∞
±0.0 ±0.0
fndouble scalbn(double x, int n) @safe pure nothrow @nogc

ditto

fnfloat scalbn(float x, int n) @safe pure nothrow @nogc

ditto