log10

log10(x)

Try it yourself:

See also:

log10(): Base-10 Logarithm

log10() returns the exponent of 10 needed to produce a positive input. It is natural for orders of magnitude, decibels, pH-style scales, and scientific notation.

Positive inputs only

For real results, the input must be greater than zero. log10(1000) is 3 and log10(0.1) is −1. Use pow() to reverse a base-ten exponent, or log() when natural logarithms suit the formula.

Keep units meaningful by dividing a measurement by a reference before taking a logarithm. Use abs() only when a magnitude, rather than a signed measurement, is the intended input.

Try Log10 in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions