Debian Codegraph @

upstream/debian-unstable/man3/log10.3

raw
1 '\" t
2 .\" Copyright 1993, David Metcalfe <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH log10 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 log10, log10f, log10l \- base-10 logarithmic function
10 .SH LIBRARY
11 Math library
12 .RI ( libm ,\~ \-lm )
13 .SH SYNOPSIS
14 .nf
15 .B #include <math.h>
16 .P
17 .BI "double log10(double " x );
18 .BI "float log10f(float " x );
19 .BI "long double log10l(long double " x );
20 .fi
21 .P
22 .RS -4
23 Feature Test Macro Requirements for glibc (see
24 .BR feature_test_macros (7)):
25 .RE
26 .P
27 .BR log10f (),
28 .BR log10l ():
29 .nf
30 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
31 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
32 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
33 .fi
34 .SH DESCRIPTION
35 These functions return the base-10 logarithm of
36 .IR x .
37 .SH RETURN VALUE
38 On success, these functions return the base-10 logarithm of
39 .IR x .
40 .P
41 For special cases, including where
42 .I x
43 is 0, 1, negative, infinity, or NaN, see
44 .BR log (3).
45 .SH ERRORS
46 See
47 .BR math_error (7)
48 for information on how to determine whether an error has occurred
49 when calling these functions.
50 .P
51 For a discussion of the errors that can occur for these functions, see
52 .BR log (3).
53 .SH ATTRIBUTES
54 For an explanation of the terms used in this section, see
55 .BR attributes (7).
56 .TS
57 allbox;
58 lbx lb lb
59 l l l.
60 Interface Attribute Value
61 T{
62 .na
63 .nh
64 .BR log10 (),
65 .BR log10f (),
66 .BR log10l ()
67 T} Thread safety MT-Safe
68 .TE
69 .SH STANDARDS
70 C11, POSIX.1-2008.
71 .SH HISTORY
72 C99, POSIX.1-2001.
73 .P
74 The variant returning
75 .I double
76 also conforms to
77 SVr4, 4.3BSD, C89.
78 .SH SEE ALSO
79 .BR cbrt (3),
80 .BR clog10 (3),
81 .BR exp10 (3),
82 .BR log (3),
83 .BR log2 (3),
84 .BR sqrt (3)