W3cubDocs

/GNU Fortran 10

9.178 LOG10 — Base 10 logarithm function

Description:

LOG10(X) computes the base 10 logarithm of X.

Standard:

Fortran 77 and later

Class:

Elemental function

Syntax:

RESULT = LOG10(X)

Arguments:
X The type shall be REAL.
Return value:

The return value is of type REAL or COMPLEX. The kind type parameter is the same as X.

Example:
program test_log10
  real(8) :: x = 10.0_8
  x = log10(x)
end program test_log10
Specific names:
Name Argument Return type Standard
ALOG10(X) REAL(4) X REAL(4) Fortran 77 and later
DLOG10(X) REAL(8) X REAL(8) Fortran 77 and later

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/LOG10.html