]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/log10.3
log2.3, log10.3: wfix
[thirdparty/man-pages.git] / man3 / log10.3
CommitLineData
a1eaacb1 1'\" t
fea681da 2.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
b2de3fac
MK
3.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4.\" <mtk.manpages@gmail.com>
fea681da 5.\"
5fbde956 6.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fea681da
MK
7.\"
8.\" References consulted:
9.\" Linux libc source code
10.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
11.\" 386BSD man pages
12.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
13.\" Modified 1995-08-14 by Arnt Gulbrandsen <agulbra@troll.no>
14.\" Modified 2002-07-27 by Walter Harms
15.\" (walter.harms@informatik.uni-oldenburg.de)
16.\"
4c1c5274 17.TH log10 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
18.SH NAME
19log10, log10f, log10l \- base-10 logarithmic function
6f258d4c
AC
20.SH LIBRARY
21Math library
8fc3b2cf 22.RI ( libm ", " \-lm )
fea681da
MK
23.SH SYNOPSIS
24.nf
25.B #include <math.h>
c6d039a3 26.P
fea681da 27.BI "double log10(double " x );
fea681da 28.BI "float log10f(float " x );
fea681da
MK
29.BI "long double log10l(long double " x );
30.fi
c6d039a3 31.P
d39ad78f 32.RS -4
b2de3fac
MK
33Feature Test Macro Requirements for glibc (see
34.BR feature_test_macros (7)):
d39ad78f 35.RE
c6d039a3 36.P
b2de3fac
MK
37.BR log10f (),
38.BR log10l ():
9d2adbae 39.nf
5c10d2c5 40 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
9d2adbae 41 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
75c018a1 42 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
9d2adbae 43.fi
fea681da 44.SH DESCRIPTION
6da06e35 45These functions return the base-10 logarithm of
022671eb 46.IR x .
b2de3fac 47.SH RETURN VALUE
6da06e35 48On success, these functions return the base-10 logarithm of
b2de3fac 49.IR x .
c6d039a3 50.P
b2de3fac
MK
51For special cases, including where
52.I x
53is 0, 1, negative, infinity, or NaN, see
54.BR log (3).
fea681da 55.SH ERRORS
b2de3fac
MK
56See
57.BR math_error (7)
58for information on how to determine whether an error has occurred
59when calling these functions.
c6d039a3 60.P
b2de3fac
MK
61For a discussion of the errors that can occur for these functions, see
62.BR log (3).
acbba9e3
MS
63.SH ATTRIBUTES
64For an explanation of the terms used in this section, see
65.BR attributes (7).
66.TS
67allbox;
c466875e 68lbx lb lb
acbba9e3
MS
69l l l.
70Interface Attribute Value
71T{
9e54434e
BR
72.na
73.nh
acbba9e3
MS
74.BR log10 (),
75.BR log10f (),
76.BR log10l ()
77T} Thread safety MT-Safe
78.TE
3113c7f3 79.SH STANDARDS
4131356c
AC
80C11, POSIX.1-2008.
81.SH HISTORY
82C99, POSIX.1-2001.
c6d039a3 83.P
b2de3fac
MK
84The variant returning
85.I double
86also conforms to
e0089d55 87SVr4, 4.3BSD, C89.
47297adb 88.SH SEE ALSO
fea681da 89.BR cbrt (3),
36268806 90.BR clog10 (3),
0912b48d 91.BR exp10 (3),
be62f421
JE
92.BR log (3),
93.BR log2 (3),
fea681da 94.BR sqrt (3)