Abs - Math

From Creation Kit
Jump to: navigation, search

Member of: Math Script

Calculates the absolute value of the number it is given.


float Function abs(float afValue) native global


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

Return Value

The absolute value of the passed-in value.


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

See Also