OpenBI Docs Buy

LOG10

Logarithm in base 10 of the number: LOG10(1000) is 3.

Group: Math. Compatible with DAX.

Syntax

LOG10 ( <number> )
ParameterTypeDescription
numberNumberA number above 0.

Returns

Number. The power 10 must be raised to in order to give the number.

Remarks

  • 0 and negative numbers are errors. A blank gives minus infinity (-Infinity).
  • Powers of ten come out exact: LOG10 ( 1000 ) is 3 and LOG10 ( 0.01 ) is -2.
  • The number of digits of a whole number n of 1 or more is INT ( LOG10 ( n ) ) + 1.

Examples

Logarithms in base 10

EVALUATE
ROW (
    "Of 1000", LOG10 ( 1000 ),
    "Of 0.01", LOG10 ( 0.01 ),
    "Of 50", LOG10 ( 50 )
)
Of 1000Of 0.01Of 50
3-21.69897000433602

Digits of a number

EVALUATE
ROW ( "Digits of 12345", INT ( LOG10 ( 12345 ) ) + 1 )
Digits of 12345
5

LOG, LN, INT.

Last updated · OpenBI Studio 0.3.74