1.162 class round

Arithmetic function. round rounds the value of its unary_expression-argument to the nearest integer. Halves are rounded away from zero, as Prolog's round/1.

?- new(B, box), send(B, width, round(7/2)), get(B, width, W).
W = 4.
See also
- class unary_expression
- class int_divide