Floatround
From SA-MP Wiki
Revision as of 16:05, 26 April 2014; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
[edit]
floatround
Note: This function name starts with a lowercase letter. |
Description:
Round a floating point number to an integer value.
(Float:value,method = floatround_round)
value | The value to round. |
method | The floatround method to use. |
Return Values:
The rounded value as an integer.
Example Usage:
floatround(3.3, floatround_ceil);
[edit]
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.