1log10(3) Library Functions Manual log10(3)
2
3
4
6 log10, log10f, log10l - base-10 logarithmic function
7
9 Math library (libm, -lm)
10
12 #include <math.h>
13
14 double log10(double x);
15 float log10f(float x);
16 long double log10l(long double x);
17
18 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
19
20 log10f(), log10l():
21 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
22 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
23 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24
26 These functions return the base 10 logarithm of x.
27
29 On success, these functions return the base 10 logarithm of x.
30
31 For special cases, including where x is 0, 1, negative, infinity, or
32 NaN, see log(3).
33
35 See math_error(7) for information on how to determine whether an error
36 has occurred when calling these functions.
37
38 For a discussion of the errors that can occur for these functions, see
39 log(3).
40
42 For an explanation of the terms used in this section, see at‐
43 tributes(7).
44
45 ┌────────────────────────────────────────────┬───────────────┬─────────┐
46 │Interface │ Attribute │ Value │
47 ├────────────────────────────────────────────┼───────────────┼─────────┤
48 │log10(), log10f(), log10l() │ Thread safety │ MT-Safe │
49 └────────────────────────────────────────────┴───────────────┴─────────┘
50
52 C11, POSIX.1-2008.
53
55 C99, POSIX.1-2001.
56
57 The variant returning double also conforms to SVr4, 4.3BSD, C89.
58
60 cbrt(3), clog10(3), exp10(3), log(3), log2(3), sqrt(3)
61
62
63
64Linux man-pages 6.04 2023-03-30 log10(3)