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

Home » Public Forums » archive » fun typos in IDL
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
fun typos in IDL [message #29784] Wed, 13 March 2002 14:36
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
Ahem,
my for loop ended up running a few more iterations
than I had intended. Hee Hee!

for offset = 21d,21d+3*8,3 do begin ; hours


Of course, one should type:
for offset = 21d,21d + 3*8,3 do begin ; hours
or:
for offset = 21d0,21d0+3*8,3 do begin ; hours
to get the expected results.


IDL> help,21d+3*8
<Expression> DOUBLE = 168000.00


Weeeeehahahaha!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: image subtraction
Next Topic: Re: Returning ARRAYs from functions?

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

Current Time: Wed Oct 08 16:51:56 PDT 2025

Total time taken to generate the page: 0.00462 seconds