round(x)
From YoYoGames Wiki
Description
The round() function is a mathematical function that rounds the given argument to an integer.
Arguments
- x (real): value
Returns
(real): rounded value of x
Explanation
The round() function rounds to the nearest integer. Values like 1.5 are rounded up.
Examples
round(4.120213) will return 4 round(4.6585) will return 5 round(4.5) will return 5

