Method on @infsup: round (X)

Round each number in interval X to the nearest integer. Ties are rounded away from zero (towards +Inf or -Inf depending on the sign).

Accuracy: The result is a tight enclosure.

round (infsup (2.5, 3.5))
  ⇒ ans = [3, 4]
round (infsup (-0.5, 5))
  ⇒ ans = [-1, +5]

See also: @infsup/floor, @infsup/ceil, @infsup/roundb, @infsup/fix.

Package: interval