31000 + 3000 = -31536 (What is this!) [message #309] |
Sun, 28 June 1992 10:34 |
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 |||||||||||||||||||||||||||||||
|
|
|