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 has a value equal to log10x.

Specific Name Argument Type Result Type
ALOG10 1 REAL(4) REAL(4)
DLOG10 REAL(8) REAL(8)
QLOG10 2 REAL(16) REAL(16)
1 The setting of compiler option /real_size can affect ALOG10.
2 VMS and U*X

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

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