2 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
3 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4 .\" <mtk.manpages@gmail.com>
6 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
8 .TH scalbln 3 (date) "Linux man-pages (unreleased)"
10 scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl \-
11 multiply floating-point number by integral power of radix
14 .RI ( libm ", " \-lm )
19 .BI "double scalbln(double " x ", long " exp );
20 .BI "float scalblnf(float " x ", long " exp );
21 .BI "long double scalblnl(long double " x ", long " exp );
23 .BI "double scalbn(double " x ", int " exp );
24 .BI "float scalbnf(float " x ", int " exp );
25 .BI "long double scalbnl(long double " x ", int " exp );
29 Feature Test Macro Requirements for glibc (see
30 .BR feature_test_macros (7)):
37 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
38 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
45 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
46 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
47 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
50 These functions multiply their first argument
65 can be obtained by including
67 .\" not in /usr/include but in a gcc lib
69 On success, these functions return
78 is a NaN, a NaN is returned.
82 is positive infinity (negative infinity),
83 positive infinity (negative infinity) is returned.
87 is +0 (\-0), +0 (\-0) is returned.
89 If the result overflows,
91 and the functions return
96 respectively, with a sign the same as
99 If the result underflows,
100 a range error occurs,
101 and the functions return zero, with a sign the same as
106 for information on how to determine whether an error has occurred
107 when calling these functions.
109 The following errors can occur:
111 Range error, overflow
115 An overflow floating-point exception
119 Range error, underflow
123 An underflow floating-point exception
127 For an explanation of the terms used in this section, see
135 Interface Attribute Value
143 T} Thread safety MT-Safe
154 These functions differ from the obsolete functions described in
156 in the type of their second argument.
157 The functions described on this page have a second argument
158 of an integral type, while those in
160 have a second argument of type
165 equals 2 (which is usual), then
171 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6803
172 these functions did not set