#
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
```

Revised on April 30, 2009 22:51:53
by

Jason Blevins
(71.70.142.190)
(503 characters / 0.0 pages)