up previous next
round

round to integer

Syntax
round(X: RAT): INT

Description
This function rounds a rational to the nearest integer; halves are rounded towards zero.

Example
/**/  round(4.56);
5

/**/  round(-1/2);
0

See Also