Floatround
From SA-MP Wiki
Round a floating point number to an integer value.
(Float:value,floatround method: method=floatround_round)
| value | The value to round. |
| method | The floatround method to use. |
| Returns | The rounded value is non tagged Integer. |
floatround(3.3, floatround_ceil);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- float: Convert an integer to a float.
- floatstr: Convert an string to a float.
