Returns the logarithm to the base 10 of a specified number.

Syntax

LOG10(<expN>)

<expN>

A positive nonzero number which equals 10 raised to the log. If you specify 0 or a negative number for <expN>, dBASE Plus returns an error.

Description

LOG10( ) returns the common logarithm of <expN>. The common logarithm is the power (exponent) to which you raise 10 to get <expN>. For example, LOG10(100) returns 2 because 10^2=100.

Use SET DECIMALS to set the number of decimal places LOG10( ) displays.