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

Home » Public Forums » archive » Re: Could you explain why this happen?
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: Could you explain why this happen? [message #70706 is a reply to message #70705] Wed, 28 April 2010 10:06 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bryan writes:

> This may be a stupid question, but I really want to know why.
> Please, see below and explain. Thanks.
>
> IDL> print, 132*30
> 3960
> IDL> print, 132*30*10
> -25936
> IDL> print, 132*300
> -25936
> IDL> data1 = 132
> IDL> data2 = 300
> IDL> data3 = data1*data2
> IDL> print, data3
> -25936

Here is a clue. These are the same IDL commands in my IDL
session:

IDL> print, 132*30
3960
IDL> print, 132*30*10
39600
IDL> print, 132*300
39600
IDL> data1 = 132
IDL> data2 = 300
IDL> data3 = data1*data2
IDL> print, data3
39600

Probably the only difference between your IDL session and mine
is that I have this command in my IDL startup file:

compile_opt defint32

Why would that matter?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to read field attributes in HDF-EOS
Next Topic: ms2gt MODIS reprojection toolkit

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

Current Time: Fri Oct 10 01:10:49 PDT 2025

Total time taken to generate the page: 0.72018 seconds