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

Home » Public Forums » archive » Re: subtle but important
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: subtle but important [message #24911 is a reply to message #24908] Fri, 27 April 2001 08:28 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Randall Skelton <rhskelto@atm.ox.ac.uk> writes:
> On Fri, 27 Apr 2001, Liam E. Gumley wrote:
>
>> This is a subtle but important point. DOUBLE() is a type conversion
>> function [snip]
>
> While we are on the subject of 'subtle but important points' in IDL...
>
> I also learned today that for integers the default length is 16-bit unless
> you use the "COMPILE_OPT DEFINT32" statement. Try "print, 1000*1000" in
> IDL.

That's why I often use "print, 1000L*1000L". Appending "L" to
integers saves a lot of grief later on. The COMPILE_OPT approach
works in newer versions, but not in IDL 5.2 or older.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: 2 variables on same plot?
Next Topic: Incrementing an Array

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

Current Time: Sat Oct 11 15:27:33 PDT 2025

Total time taken to generate the page: 0.96739 seconds