Equals component not working

Hello community

does anyone undestand why the equallity component is not working in this case?

This could be a rounding problem. Either round the number to 3-5 digits or use larger than 5600 to filter the values.

2 Likes

never compare floating point numbers with β€œ==”. do something like this instead:

abs(a - b) <= tolerance
2 Likes

thank you for the solutions, effectively a round component works!

2 Likes

It won’t always. If you round two very slightly different values you may exacerbate the distance between them. For example rounding 3.4999999999999 and 3.500000000001 to the nearest integer will make the first number go to 3 and the second to 4.

2 Likes