Floatround method

From SA-MP Wiki

Jump to: navigation, search


Description:

The rounding method used with floatround.


floatround_roundRound to the nearest integer. A fractional part of exactly 0.5 rounds upwards (this is the default).
floatround_floorRound downwards.
floatround_ceilRound upwards.
floatround_tozeroRound downwards for positive values and upwards for negative values (“truncate”).
Personal tools