1SCALB(3)                   Linux Programmer's Manual                  SCALB(3)
2
3
4

NAME

6       scalb,  scalbf,  scalbl,  scalbn,  scalbnf, scalbnl, scalbln, scalblnf,
7       scalblnl - multiply floating-point number by integral power of radix
8

SYNOPSIS

10       #include <math.h>
11
12       double scalb(double x, double exp);
13       float scalbf(float x, double exp);
14       long double scalbl(long double x, double exp);
15
16       double scalbn(double x, int exp);
17       float scalbnf(float x, int exp);
18       long double scalbnl(long double x, int exp);
19
20       double scalbln(double x, long int exp);
21       float scalblnf(float x, long int exp);
22       long double scalblnl(long double x, long int exp);
23
24       Link with -lm.
25

DESCRIPTION

27       These functions multiply their first argument x by FLT_RADIX  (probably
28       2) to the power exp.
29
30       If FLT_RADIX equals 2, then scalbn() is equivalent to ldexp().
31
32       The value of FLT_RADIX is found in <float.h>.
33

CONFORMING TO

35       The  scalb() function is from 4.3BSD.  The scalbn() and scalbln() func‐
36       tions are from C99.  All three are in POSIX.1-2001.  The scalb()  func‐
37       tion is marked obsolescent.
38

SEE ALSO

40       ldexp(3)
41
42
43
44                                  2004-10-31                          SCALB(3)
Impressum