Synopsis
double log10(double x);
Description

log10 computes the base-10 logarithm of x.

If x = 0, errno is set to ERANGE and log10 returns −HUGE_VAL. If x < 0, errno is set to EDOM and log10 returns −HUGE_VAL.

If x < 0 or x = −∞, log10 returns NaN.
If x = 0, log10 returns −∞.
If x = ∞, log10 returns ∞.
If x = NaN, log10 returns x.