From Xojo Documentation
Returns the passed value rounded to the nearest whole number.
result = Round (value)
|result||Double||The rounded value. Although result is typed as a Double, it actually contains an integer value.|
|value||Double||The value you want to round.|
The result of this function is a Double, but it will always contain a whole number.
The method used to round is chosen by the operating system and the results may vary from platform to platform when the number to be rounded is exactly halfway between two whole numbers.
This example uses the Round function to return a rounded number