comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ishft(-32768,-1) = 2147467264 ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ishft(-32768,-1) = 2147467264 ? [message #9341 is a reply to message #9338] Fri, 20 June 1997 00:00 Go to previous messageGo to previous message
George McCabe is currently offline  George McCabe
Messages: 23
Registered: June 1997
Junior Member
On Fri, 20 Jun 1997 09:37:31 -0400, Jack Saba wrote:

> From the user's guide (v3.6,p 3-2):
>
> "Inegers with absolute values greater than 32767 are automatically
> promoted to longword type."
>

Jack,

Thank you for pointing that out. It makes ABS() work, since the
absolute value of -32768 is not a member of the short integers. But
when definitions are contradictory I get confused. Ultimately, I am
going to make mistakes in my code, forgetting one or more of the rules.
Still, -32768 is first a short integer and then also a long integer,
in my mind at least.

George


VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV VVVVVVVV
George McCabe (HSTX) NASA / GSFC
Tel: (301)286-8283, Fax: (301)286-0212 Code 693, B2 R151
E-mail: george.mccabe@gsfc.nasa.gov Greenbelt, MD 20912
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Lat/Lon labels ala "gmt"
Next Topic: Mark Rivers object example

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Dec 03 06:54:08 PST 2025

Total time taken to generate the page: 1.36710 seconds