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 #9338] Fri, 20 June 1997 00:00 Go to previous message
George McCabe is currently offline  George McCabe
Messages: 23
Registered: June 1997
Junior Member
mail message quoted below >>>

On Thu, 19 Jun 1997, George McCabe wrote:

> Is it true that IDL interprets the explicitly typed fix(-32768) as a
> negative constant and not as an operator and an unsigned constant?

I guess I have no way of knowing for sure, but what I'd say is that
when parsing "fix(-32768)" IDL says to itself...

i) Hmm, "32768"... that can't be an ordinary integer, so I'll
make it a long.

ii) There's the unary operator "-", so I'll change the sign.
(value is still a long).

iii) Look here, it's a call to FIX, i.e., a request to convert to
an ordinary integer. The argument is a value I can map into the
set of integers, so I'll do that.

Hope this helps

Stephen Ritcey (902)494-3313 (voice) (902)494-5191 (fax)
Physics Dept., Dalhousie Univ., Halifax, N.S., Canada B3H 3J5

end of quoted message <<<



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: Fri Oct 10 06:44:18 PDT 2025

Total time taken to generate the page: 1.51368 seconds