> The SETVAR entry in the on-line help does not document what the maximum
> numeric value that can be held in a CI variable is. As one of our fellow
> members would say "Enquiring minds want to know".
Using an integer that is 32 bits wide, of which the highest bit is a sign
bit.
This results in the largest positive number is +2,147,483,647.
The *largest* negative number is actually -2,147,483,648 due
to a difference in the two's complement representation.
setvar n,2147483648
Integer overflow in the expression. (CIERR 9740)
setvar n,2147483647
showvar n
N = 2,147,483,647
setvar n,-2147483648
setvar n,-2147483649
Integer underflow would result. (CIERR 9820)
----- Original Message -----
From: "Robert Mills" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, April 08, 2004 9:43 AM
Subject: [HP3000-L] CI Variable Limits
> Greetings,
>
> The SETVAR entry in the on-line help does not document what the maximum
> numeric value that can be held in a CI variable is. As one of our fellow
> members would say "Enquiring minds want to know".
>
> regards,
>
> Robert W.Mills
> Systems Development Manager
> Windsong Services
> (01689) 870622 x3005
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|