Intel® Fortran Compiler 17.0 Developer Guide and Reference
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. |
The result type and kind is 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. |
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