11-04-2021 07:28 PM
Hi all
I have a demo want to search in 1D find element in which index,from numeric 1-10 when fill in numeric 3,5,6,7,10 can do it right excepted fill in numeric 1,2,4,8,9.What cause for the issue? Thanks for all prompt reply.
Solved! Go to Solution.
11-04-2021 09:20 PM - edited 11-04-2021 09:36 PM
You are dealing with floating point values, so all equal comparisons are questionable. For example if ampltitude=2, the second peak has a value of 1.99999999999999956000 (if you display all decimal digits!) which is arguably not the same as 2. All Y values are the result of complicated calculations and will typically not fall into place unless you are very lucky.
Also:
11-05-2021 05:28 PM
Thanks for you,I got it.