round

Rounds to the nearest integer.

If equidistant between two integers, the function breaks ties by rounding to the even number.

Syntax

round(x)

x can be any of the following data types:
Long, Money, or Double.

Examples

  • round(1.4) = 1
  • round(1.6) = 2
  • round(1.5) = 2
  • round(2.5) = 2
  • round(-1.5) = -2
  • round(-2.5) = -2
Was this helpful?
How can we improve it?