HP3000-L Archives

April 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mike Hornsby <[log in to unmask]>
Reply To:
Mike Hornsby <[log in to unmask]>
Date:
Thu, 8 Apr 2004 10:34:55 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
> 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 *

ATOM RSS1 RSS2