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

Home » Public Forums » archive » Re: for loop with floating point index variable
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
Re: for loop with floating point index variable [message #82345] Mon, 03 December 2012 13:34
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Mon, 3 Dec 2012 12:42:50 -0800 (PST), fawltylanguage@gmail.com
wrote:

> Hi guys,
>
> can someone explain this?
>
> IDL> print, !version
> { x86_64 linux unix linux 8.2.1 Aug 20 2012 64 64}
> IDL> for i=1.0,3.5 do print, i
> 1.00000
> 2.00000
> 3.00000
> 4.00000
>
> IDL 7.0 is better:
>
> IDL> print, !version
> { x86_64 linux unix linux 7.0 Oct 25 2007 64 64}
> IDL> for i=1.0,3.5 do print, i
> 1.00000
> 2.00000
> 3.00000
>
> regards,
> Lajos

Same on Windows. However version 8 also works, if you explicitly
specify the increment value:

IDL> print,!version
{ x86 Win32 Windows Microsoft Windows 8.0.1 Oct 5 2010 32
64}
IDL> for i=1.0,3.5,1.0 do print,i
1.00000
2.00000
3.00000

Can anyone explain this?

Cheers, Heinz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: for loop with floating point index variable
Next Topic: Some IDL8.2.1 Workbench related problems

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

Current Time: Wed Oct 08 13:33:02 PDT 2025

Total time taken to generate the page: 0.00594 seconds