OpenBI Docs Buy

Number.Log10

The base-10 logarithm: the power 10 must be raised to for the number.

Group: Number. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Number.Log10(number as nullable number) as nullable number
ParameterTypeDescription
numbernullable numberThe number to work on; null gives null.

Returns

nullable number. The logarithm to base 10; minus infinity for 0, NaN for a negative number; null for null.

Examples

A thousand

Number.Log10(1000)
3

A hundredth

Number.Log10(0.01)
-2

How many digits a whole number has

Number.RoundDown(Number.Log10(48500)) + 1
5

Number.Log, Number.Ln, Number.Power.

Last updated · OpenBI Studio 0.3.79