Everything

scalbn / scalbnf / scalbnl / scalbln / scalblnf / scalblnl


Calculates a floating-point number multiplied by a power of radix, which is an integer.

[Format]

#include <math.h>

double scalbn(double d, long e);

float scalbnf(float d, long e);

long double scalbnl(long double d, long e);

double scalbln(double d, long e);

float scalblnf(float d, long int e);

long double scalblnl(long double d, long int e);

[Parameters]

d Value to be multiplied by FLT_RADIX raised to the power e

e Exponent used to compute a power of FLT_RADIX

[Return values]

Normal: Value equal to d multiplied by FLT_RADIX

Abnormal: Range error: Returns –HUGE_VAL, –HUGE_VALF, or –HUGE_VALL depending on the function.

[Remarks]

A range error may occur if d is 0.

FLT_RADIX raised to the power e is not actually calculated.