1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" References consulted:
8 .\" Linux libc source code
9 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
11 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
12 .\" Modified 1995-08-14 by Arnt Gulbrandsen <agulbra@troll.no>
13 .\" Modified 2002-07-27 by Walter Harms
14 .\" (walter.harms@informatik.uni-oldenburg.de)
16 .TH EXP2 3 2021-03-22 "Linux man-pages (unreleased)"
18 exp2, exp2f, exp2l \- base-2 exponential function
21 .RI ( libm ", " \-lm )
26 .BI "double exp2(double " x );
27 .BI "float exp2f(float " x );
28 .BI "long double exp2l(long double " x );
32 Feature Test Macro Requirements for glibc (see
33 .BR feature_test_macros (7)):
40 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
43 These functions return the value of 2 raised to the power of
46 On success, these functions return the base-2 exponential value of
49 For various special cases, including the handling of infinity and NaN,
50 as well as overflows and underflows, see
55 for information on how to determine whether an error has occurred
56 when calling these functions.
58 For a discussion of the errors that can occur for these functions, see
61 These functions first appeared in glibc in version 2.1.
63 For an explanation of the terms used in this section, see
71 Interface Attribute Value
76 T} Thread safety MT-Safe
82 C99, POSIX.1-2001, POSIX.1-2008.