Floatabs

From SA-MP Wiki

Revision as of 16:26, 26 April 2014; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

floatabs

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

This function returns the absolute value of float.


Parameters:
(Float:value)
Float:valueThe float value to get the absolute value of.


Return Values:

The absolute value of the float (as a float value).


Example Usage:

floatabs(47.0); // This will return 47.0.
floatabs(-47.0); // This will return the same.