Fortran Wiki
log10 (changes)

Showing changes from revision #1 to #2: Added | Removed | Changed

Description

log10(x) computes the base 10 logarithm of x.

Standard

Fortran 77 and laterFORTRAN 77 and later

Class

Elemental functionElemental 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