Log10

Value = Log10 ( Number AS Float ) AS Float

Computes base 10 logarithm of Nnumber. The value of Number 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