number: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Number to number: Converting page titles to lowercase)
m (No links to "func|string" exist yet; note that the "func" macro cannot be used to link to "string()")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
[[Category:Variable Type]]
{{MacroFunction
|name=number
|version=1.3b48
|description=
Returns the value that is passed in as a number. If the value can not be converted to a number then an error will occur. If you are unsure if a value is a number, use {{func|isNumber}} before calling this function.
   
|usage=
<syntaxhighlight lang="mtmacro" line>
number(val)
</syntaxhighlight>
|also=
[[string (function)|string()]]
}}
[[Category:Mathematical Function]]
[[Category:String Function]]

Latest revision as of 07:06, 23 November 2023

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

number() Function

Introduced in version 1.3b48
Returns the value that is passed in as a number. If the value can not be converted to a number then an error will occur. If you are unsure if a value is a number, use isNumber() before calling this function.

Usage

number(val)


See Also