Equal Numbers: Difference between revisions
-u ndefined- (talk | contribs) m (Link related articles) |
-u ndefined- (talk | contribs) m (Include more relevant blocks) |
||
Line 27: | Line 27: | ||
== Related == | == Related == | ||
* [[Less Than]] | |||
* [[Greater Than]] | |||
* [[Equal Vectors]] | * [[Equal Vectors]] | ||
* [[Equal Truths]] | * [[Equal Truths]] |
Latest revision as of 13:48, 29 July 2025
Equal Numbers
Type | Script block |
Collider | None |
Folder | Math |
Ports | |
---|---|
Inputs | Num1 Num2 |
Outputs | Num1 = Num2 |
Outputs True
if both number inputs are equal, and false if they are not.

Notes
- The numbers do not have to be actually equal to be considered equal, they have to be close enough.
- If high precision is required, the following script can be used:
- You can check whether a number is valid by checking whether it is equal to itself.
nan
,inf
and-inf
are not considered equal to themselves because they represent a set of numbers.