Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

LOG10

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

result = LOG10 (x)

x

(Input) Must be of type real or complex. If x is real, its value must be greater than zero. If x is complex, its value must not be zero.

Results

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

Specific Name

Argument Type

Result Type

ALOG10 1,2

REAL(4)

REAL(4)

DLOG10 3

REAL(8)

REAL(8)

QLOG10

REAL(16)

REAL(16)

CLOG102

COMPLEX(4)

COMPLEX(4)

CDLOG103

COMPLEX(8)

COMPLEX(8)

CQLOG10

COMPLEX(16)

COMPLEX(16)

1This function is treated like LOG10.

2The setting of compiler options specifying real size can affect ALOG10, CLOG10, and LOG10.

3The setting of compiler options specifying double size can affect DLOG10 and CDLOG10.

Example

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

See Also