SCALBN(3) Library Functions Manual SCALBN(3)

scalbln, scalblnf, scalblnl, scalbn, scalbnf, scalbnladjust exponent by radix

#include <math.h>

double
scalbln(double x, long n);

float
scalblnf(float x, long n);

long double
scalblnl(long double x, long n);

double
scalbn(double x, int n);

float
scalbnf(float x, int n);

long double
scalbnl(long double x, int n);

() and () return x*(2**n) computed by exponent manipulation. The () and () functions are single precision versions of scalbln() and scalbn(), respectively. The () and () functions are extended precision versions of scalbln() and scalbn(), respectively.

IEEE Std 754-1985

The scalbln, scalblnf and scalblnl functions appeared in OpenBSD 4.7. The scalbn, scalbnf, and scalbnl, functions appeared in 4.3BSD, NetBSD 1.1 and OpenBSD 4.5, respectively.

April 26, 2016 OpenBSD 7.6