Difference between revisions of "Abs"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "The <msinline>abs</msinline> function returns the absolute value of the given number. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning...")
(No difference)

Revision as of 03:53, 11 March 2020

The abs function returns the absolute value of the given number.

Arguments

Parameter Name Default Value Meaning
x 0 number to take the absolute value of

Example

abs(-42)    // returns 42