Floatabs

From SA-MP Wiki

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.
Personal tools
Navigation
Toolbox