note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
floatabs
warning
This function starts with a lowercase letter.
Description
This function returns the absolute value of float.
Name | Description |
---|---|
Float:value | The float value to get the absolute value of. |
Returns
The absolute value of the float (as a float value).
Examples
new Float:value;
value = floatabs(47.0); // This will return 47.0
value = floatabs(-47.0); // This will return the same.