1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .TH SCALBLN 3 2021-03-22 "Linux man-pages (unreleased)"
9 scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl \-
10 multiply floating-point number by integral power of radix
13 .RI ( libm ", " \-lm )
18 .BI "double scalbln(double " x ", long " exp );
19 .BI "float scalblnf(float " x ", long " exp );
20 .BI "long double scalblnl(long double " x ", long " exp );
22 .BI "double scalbn(double " x ", int " exp );
23 .BI "float scalbnf(float " x ", int " exp );
24 .BI "long double scalbnl(long double " x ", int " exp );
28 Feature Test Macro Requirements for glibc (see
29 .BR feature_test_macros (7)):
36 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
37 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
44 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
45 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
46 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
49 These functions multiply their first argument
64 can be obtained by including
66 .\" not in /usr/include but in a gcc lib
68 On success, these functions return
77 is a NaN, a NaN is returned.
81 is positive infinity (negative infinity),
82 positive infinity (negative infinity) is returned.
86 is +0 (\-0), +0 (\-0) is returned.
88 If the result overflows,
90 and the functions return
95 respectively, with a sign the same as
98 If the result underflows,
100 and the functions return zero, with a sign the same as
105 for information on how to determine whether an error has occurred
106 when calling these functions.
108 The following errors can occur:
110 Range error, overflow
114 An overflow floating-point exception
118 Range error, underflow
122 An underflow floating-point exception
126 These functions first appeared in glibc in version 2.1.
128 For an explanation of the terms used in this section, see
136 Interface Attribute Value
144 T} Thread safety MT-Safe
150 C99, POSIX.1-2001, POSIX.1-2008.
152 These functions differ from the obsolete functions described in
154 in the type of their second argument.
155 The functions described on this page have a second argument
156 of an integral type, while those in
158 have a second argument of type
163 equals 2 (which is usual), then
169 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803
170 these functions did not set