11-11-2013 07:06 AM
Hello all,
I have a problem regarding to search array.
It seems like he is unable to find certain elements in the 1D array I deliver.
Because it outputs -1.
I attached my vi + the file
Koen
Solved! Go to Solution.
11-11-2013 07:16 AM
You can't accurately do an equals comparison with floating point numbers. It is just a limitation of floating points in gereral (all computer languages have this issue). What you should do instead is check to see if a value is in a certain range to account for this limitation.
11-11-2013 07:21 AM
I see, now it works.
Just multiplied everything by 100 and made it i32.
Thanks