Skip to main content

floatabs

warning

This function starts with a lowercase letter.

Description

This function returns the absolute value of float.

NameDescription
Float:valueThe 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.