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

Home » Public Forums » archive » where function not finding value
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: where function not finding value [message #88268 is a reply to message #88266] Thu, 03 April 2014 11:44 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Thursday, April 3, 2014 12:57:32 PM UTC-5, Mats Löfdahl wrote:
> Try printing the difference between that last value in the array and the value you are looking for. They probably differ in decimal four or later.

As a follow on, testing equality in floats is not a good idea. This goes under the "sky is falling" category:

http://www.idlcoyote.com/math_tips/sky_is_falling.html

http://www.cygnus-software.com/papers/comparingfloats/compar ingfloats.htm
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: License Manager help
Next Topic: Map_proj_forward.pro

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

Current Time: Fri Oct 10 02:39:24 PDT 2025

Total time taken to generate the page: 0.72037 seconds