log10

math

Calculates the base-10 logarithm

Syntax

log10(number)

Parameters

number (number)

The number to calculate the logarithm of

Returns

number

The base-10 logarithm of the input

Examples

Input:
100 | log10
Output:
2
Input:
1000 | log10
Output:
3
Input:
log10(10)
Output:
1

The log10() function calculates the base-10 logarithm of a number.

Usage

Use log10() for logarithmic calculations, scientific data analysis, or converting between exponential and linear scales.

Related Functions