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

Home » Public Forums » archive » 31000 + 3000 = -31536 (What is this!)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
31000 + 3000 = -31536 (What is this!) [message #309] Sun, 28 June 1992 10:34
hatay is currently offline  hatay
Messages: 11
Registered: June 1992
Junior Member
I am performing the operation above on my IRIS/INDIGO which has
IDL. Version 2.2.2 (IRIX mipseb) installed. On my long journey
to a debugging session I came to realize that the operation
in the subject line has been the case!

I just enter

IdlMaster>print, 31000 + 3000
-31536

it is this simple. More strangely, I discovered that

print, 31000 + n

is a well behaving operation for n < 1767. For n > 1767 I get
negative numbers. This situation is the same for numbers
from 31000 to 32768.

print, 30999 + 1768
print, 32768 + 1768 are ok

but

print, 31000 + 1768
print, 32767 + 1768 are not o.k.
^^^

May be God does not want me to work overtime in the weekends?
I don't believe hoki-poki and ultranatural stuff but I start to think
that this is a sign, I should go into retailing or real estate
in Florida and South America instead of loosing hair on front of
the terminal. Can someone convince me to stay in science?

Ferhat


--
Ferhat F. Hatay || Disclamer: |||||||||||||||||
Aerospace Engineering Sciences || I speak for myself unless ||
University of Colorado, Boulder || otherwise indicated. ||
e-mail: hatay@spot.colorado.edu |||||||||||||||||||||||||||||||
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL and C working together
Next Topic: Re: 31000 + 3000 = -31536 (What is this!)

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

Current Time: Sun Oct 12 11:15:26 PDT 2025

Total time taken to generate the page: 1.76226 seconds