Method on @infsup: roundb (X)

Round each number in interval X to the nearest integer. Ties are rounded towards the nearest even integer.

Accuracy: The result is a tight enclosure.

roundb (infsup (2.5, 3.5))
  ⇒ ans = [2, 4]
roundb (infsup (-0.5, 5.5))
  ⇒ ans = [0, 6]

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

Package: interval