Floatround

From SA-MP Wiki

Jump to: navigation, search


Round a floating point number to an integer value.


Parameters:
(Float:value,floatround method: method=floatround_round)
valueThe value to round.
methodThe floatround method to use.


ReturnsThe 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.
Personal tools