Fortran Wiki
log10

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

category: intrinsics