2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
14 .. index:: exponential function, inverse
16 .. index:: logarithm function with base 10
18 .. index:: base 10 logarithm function
20 LOG10 --- Base 10 logarithm function
21 ************************************
23 .. function:: LOG10(X)
25 ``LOG10(X)`` computes the base 10 logarithm of :samp:`{X}`.
28 The type shall be ``REAL``.
31 The return value is of type ``REAL`` or ``COMPLEX``.
32 The kind type parameter is the same as :samp:`{X}`.
41 .. code-block:: fortran
46 .. code-block:: fortran
51 end program test_log10
65 - Fortran 77 and later
69 - Fortran 77 and later