Log

From MiniScript Wiki
Revision as of 15:25, 17 March 2020 by JoeStrout (talk | contribs) (JoeStrout moved page Log(x, base) to Log without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

log(x, base) returns the logarithm (with the given) of the given number, that is, the number y such that base^y = x.

Arguments

Parameter Name Default Value Meaning
x number, number to take the log of
base number default 10 logarithm base

Example

log(1000)		// returns 3 (because 10^3 == 1000)