Abs - Math

Revision as of 15:10, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Math Script

Calculates the absolute value of the number it is given.

SyntaxEdit

float Function abs(float afValue) native global

ParametersEdit

  • afValue: The value to get the absolute value of.

Return ValueEdit

The absolute value of the passed-in value.

ExamplesEdit

float x = abs(5) ; x == 5
float y = abs(-5) ; y == 5

See AlsoEdit