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

Home » Public Forums » archive » Re: Can somebody explain this?
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: Can somebody explain this? [message #41028 is a reply to message #41027] Thu, 16 September 2004 07:42 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <41499b92$1@x-privat.org>,
"sandrokan" <mura@remove.ifsi.rm.cnr.it> wrote:

> Thank you. At least, it is reported somewhere; anyway, I find it quite
> dangerous to introduce
> such a feature for array subscripting and not for scalars.

Well, like a number of IDL features, it is handy if you know about it,
dangerous if you don't. ;-)

> It is similar to
> permit "for" loops for
> not-integer values without accuracy....
> for i=0., 10, .1 do print, i
>
> ............
>
> 7.70000
>
> 7.79999

My advice to students is simple: understand roundoff error and don't
index loops with FLOATs unless you know *exactly* what you are doing.

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: size of window object and xinteranimate loading
Next Topic: Changing height value in ion_image script

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

Current Time: Wed Oct 15 14:06:09 PDT 2025

Total time taken to generate the page: 1.11992 seconds