Hello, I am using equality to evaluate if a certain distance is = to 0 (which it is) but the problem is that the equality component is providing me “false” in the output.
Any thoughts on this?
kabamba.gh (49.2 KB)
Hello, I am using equality to evaluate if a certain distance is = to 0 (which it is) but the problem is that the equality component is providing me “false” in the output.
Any thoughts on this?
I’ve solved it in a very simple way. I’ve sorted the distance values and listed the first item of that output (that I know will always be 0) and use that “0” as the B input for equality.
This forum is full of posts about floating point accuracy, comparisons and so on.
You cannot rely on the Panel component to give you accurate information. There is rounding going on and you won’t necessarily see what the actual value is.
You should not use equality, but “fuzzy” equality.
Illustration that Panel deceives you. And that floating point accuracy is not your friend.
Thanks for your reply. I’ve found an “equality with tolerance” component in pufferfish plug-in. Is that what you meant?