Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Pascal/HP-UX Release Notes: HP 9000 Series Systems > Chapter 1 New and Changed Features

HP Pascal/HP-UX Built-In Functions

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

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 263-1 or less than -263.

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 263-1 or less than -263.

Syntax

trunclong (x)

where x any real or longreal expression.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1994 Hewlett-Packard Development Company, L.P.