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

Home » Public Forums » archive » IDL not interpreting numbers correctly?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL not interpreting numbers correctly? [message #77367] Fri, 26 August 2011 17:37 Go to previous message
Ashley Berg is currently offline  Ashley Berg
Messages: 14
Registered: February 2011
Junior Member
I'm having a strange problem with IDL. I have an array of numbers
that are supposed to all add up to 100. So to check, I say:

bad = where(array gt 100. or array lt 100.)

and it says it finds 4 numbers that meet this criteria. However, when
I say:

print, array(bad)

the numbers are all 100.000! So for some reason IDL says these
numbers are greater than or less than 100 when actually they are equal
to 100. Has anyone else ever had a problem like this?
[Message index]
 
Read Message
Read Message
Previous Topic: Finding a large number of files - ls vs file_search?
Next Topic: cgis routines

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

Current Time: Fri Oct 10 18:58:36 PDT 2025

Total time taken to generate the page: 0.63589 seconds