scalbn
fn
real scalbn(real x, int n) @safe pure nothrow @nogcEfficiently calculates x * 2n.
scalbn handles underflow and overflow in the same fashion as the basic arithmetic operators.
| x | scalb(x) |
|---|---|
| +∞ | +∞ |
| ±0.0 | ±0.0 |
fn
double scalbn(double x, int n) @safe pure nothrow @nogcditto
fn
float scalbn(float x, int n) @safe pure nothrow @nogcditto