Equal Numbers: Difference between revisions

From Fancade Wiki
mNo edit summary
mNo edit summary
Line 8: Line 8:
}}
}}


Outputs `True` if both [[number]] inputs are equal, and false if they are not.
Outputs <code>True</code> if both [[number]] inputs are equal, and false if they are not.


[[File:Equal Numbers example.jpg|frameless|center|Example]]
[[File:Equal Numbers example.jpg|frameless|center|Example]]

Revision as of 12:01, 18 May 2024

Equal Numbers
Equal Numbers.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Num1
Num2
Outputs Num1 = Num2

Outputs True if both number inputs are equal, and false if they are not.

Example
Example

Notes

The numbers do not have to be actually equal to be considered equal, they have to be close enough.

0.001 is equal to 0

If high precision is required, the following script can be used:

Does not have the same issue as the example above