HP Pascal/HP-UX Release Notes Version A.10.08
Chapter 1 29
New and Changed Features
HP Pascal/HP-UX Built-In Functions
HP Pascal/HP-UX Built-In Functions
Two built-in functions are available in HP Pascal/HP-UX.
roundlong
The roundlong function returns the longint value of the argument,
rounded to the nearest integer. If x is positive or zero, roundlong(x) is
equivalent to trunclong(x+0.50); otherwise, roundlong(x) is
equivalent to trunclong(x-0.50). It is an error if the result is greater
than 2
63
-1 or less than -2
63
.
Syntax
roundlong (x)
where x is any real or longreal expression.
trunclong
The trunclong function returns the longint value of the argument,
with any fraction truncated. The absolute value of the result is not
greater than the absolute value of x. It is an error if the result is greater
than 2
63
-1 or less than -2
63
.
Syntax
trunclong (x)
where x any real or longreal expression.