Equal to

Input data

x

y

Tolerance

Output data

x = y

Description

The "Equal to" node checks whether two numbers, $$x$$ and $$y$$, are approximately equal, given a specified tolerance. It returns true if $$|x - y| \leq \text{tolerance}$$ and false otherwise.

Input data

Parameter
Standard Units
Description
$$x$$
-
First value to be compared
$$y$$
-
Second value to be compared
Tolerance
-
Maximum allowed difference between $$x$$ and $$y$$

Output data

Parameter
Standard Units
Description
$$x = y$$
-
Returns $$1$$ if the difference between $$x$$ and $$y$$ is within tolerance; $$0$$ otherwise