log10: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Redirecting to Macros:Functions:log)
 
m (Added Macro Function category.)
Line 1: Line 1:
#REDIRECT [[Macros:Functions:log]]
{{MacroFunction
|name=log10
|description=
Returns the [[wp:Logarithm_of_the_base_10|logarithm of base 10]] of a number.
 
|usage=
<source lang="mtmacro" line>
[h: val = log(num)]
[h: val = log10(num)]
</source>
 
|example=
<source lang="mtmacro" line>
[r: log(100)]
[r: log(1000)]
</source>
Returns
  2
  3
}}
[[Category:Mathematical Function]]

Revision as of 02:58, 9 March 2009

log10() Function

Returns the logarithm of base 10 of a number.

Usage

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

Example

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

Returns

  2
3