HP Pascal/iX Enhancements [ COMMUNICATOR 3000 MPE/iX General Release 5.0 (Core Software Release C.50.00) ] MPE/iX Communicators
COMMUNICATOR 3000 MPE/iX General Release 5.0 (Core Software Release C.50.00)
HP Pascal/iX Enhancements
Charlene Kastigar
Software Technology Division/
Marketing, Performance, and Support
Two new built-in functions, roundlong and trunclong, are available in
this version of HP Pascal/iX.
roundlong
Syntax
roundlong (x)
where x is any real or longreal expression.
The roundlong function returns an argument rounded to the nearest
longint. 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 263-1 or less
than -263.
trunclong
Syntax
trunclong (x)
where x is any real or longreal expression.
The trunclong function returns the longint part of a real or longreal
expression; that is, the integral part of its argument. 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 263-1 or less than -263.
These features are part of standard HP Pascal.
MPE/iX Communicators