log10

Common logarithm

double log10 (
        double x
)

Arguments

x Argument

Return Value

The common logarithm of x ( log10(x) ) is returned.

Explanation

The commonlogarithm of x is calculated and the result is returned.

Notes

x must be greater than 0, otherwise an error will occur as shown below:

Condition Return value  Error
x < 0 0 Domain error
x == 0 1 Range error

See Also

log()