LogTen

Description

Gets the base 10 logarithm of a number.

Syntax

LogTen ( n )

Argument

Description

n

The number for which you want the base 10 logarithm. The value of n must not be negative.

Returns

Double. Returns the base 10 logarithm.

NoteObtaining a number The expression 10^n is the inverse for LogTen(n). To obtain n given number (nbr = LogTen(n)), use n = 10^nbr.

Examples

Example 1

This expression returns 1:

LogTen(10)

Example 2

The following expressions both return 0:

LogTen(1)
LogTen(0)

Example 3

This expression results in an execution error:

LogTen(–2)

See also