ROUND

From GTAMods Wiki
Revision as of 22:54, 4 March 2009 by Tylerp9p (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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).