Method

Xojo.Math.Round


Warning

This item was deprecated in version 2020r2. Please use Round as a replacement.

Description

Returns the value rounded to the nearest whole number.

Sample code

Some rounding examples:

Using Xojo.Math

Dim d As Double
d = Round(1.499) ' d = 1
d = Round(1.500) ' d = 2
d = Round(1.1) ' d = 1
d = Round(1.7) ' d = 2

Compatibility

All project types on all supported operating systems.