Home > lang > log10 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Log10
Syntax
fValue = Log10 ( fNumber AS Float ) AS Float

Computes base 10 logarithm of fNnumber. The value of fNumber cannot be zero or negative.

Log10(x) = Log(x) / Log(10)

Examples

PRINT Log10(10), Log10(1000), Log10(1000000)

1        3        6

DIM i AS INTEGER

FOR i = 1 TO 50 STEP 10
  PRINT i, Log10(i)
NEXT

1    0
11   1.041392685158
21   1.322219294734
31   1.491361693834
41   1.61278385672

See also

Logarithms & Exponentials Functions