Everything

scalbn [V1.09 or later]


Multiply a floating-point number by an integral power of FLT_RADIX.

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double __far scalbn(double x, int n); (C99)

[Return value]

Returns the value calculated by x x FLT_RADIXn.

When x is a Not-a-Number (NaN), scalbn returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

If an underflow or overflow occurs as a result of executing scalbn, it sets macro ERANGE to global variable errno. If an underflow occurs, scalbn returns an denormal number. If an overflow occurs, it returns ∞.

[Description]

Multiply a floating-point number by an integral power of FLT_RADIX.