Difference between revisions of "ROUND"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=1 |p1t=float |p1d=Value |r=1 |rt=integer |rd=Rounded Value (Ceiling if number at or above x.5, Floor if below x.49) }} Rounds the number to a whole integer. If the tenth plac...)
 
(No difference)

Latest revision as of 22:54, 4 March 2009

ROUND
Number of parameters: 1
Parameter #TypeDescription
1.floatValue
Return value:
TypeDescription
integerRounded Value (Ceiling if number at or above x.5, Floor if below x.49)

Rounds the number to a whole integer. If the tenth place is at or above 5, the number will be rounded up to the next whole number (Ceiling). If the tenth digit is 4 (or below), the number will be rounded down to the next whole number (Floor).