Pascal: TRUNC and ROUND functions

The TRUNC and ROUND functions are available in Apple Pascal. The ROUND
function is of the form I:=ROUND(R), where I is an integer and R is a real
number.

TRUNC takes the form I:=TRUNC(R), where I is an integer and R is a real
number, and I:=TRUNC(L), where L is a long integer. In all cases, integer
values must be in the range -32767 to +32767; otherwise, a value range error is
returned.

Although the compiler may accept other forms of these functions, these are
the only legitimate forms according to UCSD definitions.
Published Date: Feb 18, 2012