log10: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Log10 to log10: Converting page titles to lowercase)
No edit summary
 
Line 5: Line 5:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: val = log(num)]
[h: val = log(num)]
[h: val = log10(num)]
[h: val = log10(num)]
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: log(100)]
[r: log(100)]
[r: log(1000)]
[r: log(1000)]
</source>
</syntaxhighlight>
Returns  
Returns  
   2
   2

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