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 #70705 is a reply to message #70704] Wed, 28 April 2010 10:54 Go to previous messageGo to previous message
bryan.s.hong is currently offline  bryan.s.hong
Messages: 12
Registered: November 2008
Junior Member
On 4월28일, 오후12시06분, David Fanning <n...@dfanning.com> wrote:
> 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.")

Thank you for your kind response. Then, could you let me know how to
set the IDL start-up file like you?

Thanks.

Bryan
[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 18:19:24 PDT 2025

Total time taken to generate the page: 0.72027 seconds