Log10

From NSB App Studio
Revision as of 15:30, 25 March 2019 by Ghenne (talk | contribs) (→‎Related Items)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

Log10(number)

Description

Log10 returns the base-10 logarithm of a number. The required parameter, number, is any numeric expression.

Example (Basic)

Rem Log10 Example
'Log10 calculates natural logarithms
Dim e
e = 2.718282
Print "Log10(20) = " & Log10(20)
Print "Log10(25) = " & Log10(25)
Print "Log10(100) = " & LogN(10, 100)

Function LogN(Base, Number)
  LogN = LOG(Number) / LOG(Base)
End Function

Output

Log10(20) = 1.301029996
Log10(25) = 1.397940009
Log10(100) = 2

Related Items

Exp, Log