Usage

Syntax: abs(float)
Returns number.

Explanation

Converts the input into an absolute value, essentially transforming negative numbers into positive ones. This does not "round" the number or remove decimal places.

Example

function onCreated()
{
  temp.a = abs(-6);
}

... will set temp.a to 6.

Categories

CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki