macros:Functions:log

From RPTools Wiki
Revision as of 10:41, 13 December 2008 by Craig (talk | contribs) (New page: ==Function log== Returns the logarithm of base 10 of a number. ===Usage=== <source lang="mtmacro" line> [h: val = log(num)] [h: val = log10(num)] </source>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function log

Returns the logarithm of base 10 of a number.

Usage

[h: val = log(num)]
[h: val = log10(num)]


Examples

[r: log(100)]
[r: log(1000)]

Returns

  2
  3