GM: abs

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is abs(). It appears incorrectly here because of technical restrictions.

abs
 

Type: function
Arguments: 1: value
Limitations: none

The abs() function in Game Maker is a mathematical function that returns the absolute value of the entered argument.

An absolute value is always positive.


Suppose the argument is 5, then abs(5) will return 5.

Suppose the argument is -5, then abs(-5) will also return 5.

Personal tools