Revision Difference
math.abs#517299
<function name="abs" parent="math" type="libraryfunc">
<description>Calculates the absolute value of a number (effectively removes any negative sign).</description>
<realm>Shared and Menu</realm>
<args>
<arg name="x" type="number">The number to get the absolute value of.</arg>
</args>
<rets>
<ret name="" type="number">absolute_value</ret>
</rets>
</function>
<example>
<description>Demonstrates what this function does.</description>
<code>
print( math.abs( 15 ) )
print( math.abs( -15 ) )
</code>
<output>⤶
15⤶
<output> 15⤶
15
</output>
</output>
</example>