User Tools

Site Tools


modding:function:abs

abs.

abs

The abs function is not included in the Xelerus list.

Syntax (abs number1)
Argument List number1: the number that you want the absolute value of
Returns number2: the absolute value of number1 (supplied to the function)
Category math
Description This function returns a positive value that is equal in magnitude to the number passed to it.

Example

(abs 32)

Returns 32

(abs -26)

Returns 26

See also Math functions.

Return to Functions list.

modding/function/abs.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1