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. |
Return value
Double. Returns the base 10 logarithm.
Obtaining 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
This expression returns 1:
LogTen(10)
The following expressions both return 0:
LogTen(1) LogTen(0)
This expression results in an execution error:
LogTen(-2)
See also