Provided by: manpages-dev_3.35-0.1ubuntu1_all

**NAME**

scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl - multiply floating-point number by integral power of radix

**SYNOPSIS**

#include<math.h>doublescalbln(doublex,longintexp);floatscalblnf(floatx,longintexp);longdoublescalblnl(longdoublex,longintexp);doublescalbn(doublex,intexp);floatscalbnf(floatx,intexp);longdoublescalbnl(longdoublex,intexp);Link with-lm. Feature Test Macro Requirements for glibc (seefeature_test_macros(7)):scalbln(),scalblnf(),scalblnl(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; orcc-std=c99scalbn(),scalbnf(),scalbnl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; orcc-std=c99

**DESCRIPTION**

These functions multiply their first argumentxbyFLT_RADIX(probably 2) to the power ofexp, that is: x * FLT_RADIX ** exp The definition ofFLT_RADIXcan be obtained by including<float.h>.

**RETURN** **VALUE**

On success, these functions returnx*FLT_RADIX**exp. Ifxis a NaN, a NaN is returned. Ifxis positive infinity (negative infinity), positive infinity (negative infinity) is returned. Ifxis +0 (-0), +0 (-0) is returned. If the result overflows, a range error occurs, and the functions returnHUGE_VAL,HUGE_VALF, orHUGE_VALL, respectively, with a sign the same asx. If the result underflows, a range error occurs, and the functions return zero, with a sign the same asx.

**ERRORS**

Seemath_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Range error, overflow An overflow floating-point exception (FE_OVERFLOW) is raised. Range error, underflow An underflow floating-point exception (FE_UNDERFLOW) is raised. These functions do not seterrno.

**VERSIONS**

These functions first appeared in glibc in version 2.1.

**CONFORMING** **TO**

C99, POSIX.1-2001.

**NOTES**

These functions differ from the obsolete functions described inscalb(3) in the type of their second argument. The functions described on this page have a second argument of an integral type, while those inscalb(3) have a second argument of typedouble. IfFLT_RADIXequals 2 (which is usual), thenscalbn() is equivalent toldexp(3).

**SEE** **ALSO**

ldexp(3),scalb(3)

**COLOPHON**

This page is part of release 3.35 of the Linuxman-pagesproject. A description of the project, and information about reporting bugs, can be found at http://man7.org/linux/man- pages/. 2010-09-20 SCALBLN(3)