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

Home » Public Forums » archive » WHERE command returning -1 even if matching is there
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
WHERE command returning -1 even if matching is there [message #93353] Wed, 22 June 2016 08:50 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello All,

I have a long float array say b_arr.
and I know it has a value 0.999254 at position 4556th in b_arr
but when I am doing:

i=where( b_arr EQ 0.999254)
print,i
-1

It should return i=4556. isn't??
How come is this possible any help please?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NaN doesn't work!
Next Topic: Let's get it right - Plotting ans Saving

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

Current Time: Wed Oct 08 16:05:04 PDT 2025

Total time taken to generate the page: 0.00493 seconds