lang • log10

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