Round Function

Returns the value specified rounded to the nearest Integer.

Syntax
result = Round( value )

Parameters
value | Double | The value you want to round.

Return Value
Result | Double | The rounded value.

# Notes

The Round function returns the value passed to it rounded to the nearest Integer. Fractional values greater than or equal to .5 are rounded up; those below .5 are rounded down, as shown in the example.

# Examples

This example uses the Round function to return a rounded number

Dim d as Double
d=Round(1.499) //returns 1
d=Round(1.500) //returns 2

.

# See Also

Ceil, Floor functions.