log10: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Redirecting to Macros:Functions:log)
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
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=
<syntaxhighlight lang="mtmacro" line>
[h: val = log(num)]
[h: val = log10(num)]
</syntaxhighlight>
 
|example=
<syntaxhighlight lang="mtmacro" line>
[r: log(100)]
[r: log(1000)]
</syntaxhighlight>
Returns
  2
  3
}}
[[Category:Mathematical Function]]

Latest revision as of 20:09, 15 March 2023

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