LOG10

Elemental Intrinsic Function (Generic): Returns the common logarithm of the argument.

Syntax

result = LOG10 (x)

x
(Input) Must be of type real. The value of x must be greater than zero.

Results

The result type is the same as x. The result value is approximately equal to log10x.

Specific Name Argument Type Result Type
ALOG10 1 REAL(4) REAL(4)
DLOG10 REAL(8) REAL(8)
QLOG10 REAL(16) REAL(16)
1 This function can also be specified as LOG10. The setting of compiler options specifying real size can affect ALOG10 and LOG10.

See Also

LOG

Examples

LOG10 (8.0) has the value 0.9030900.

LOG10 (15.0) has the value 1.176091.

The following shows another example:

REAL r
r = LOG10(10.0)  ! returns 1.0