ReferenceScript nodesMath › Number
Nearly Equal
True when A and B are within the tolerance of each other (0.000001 unless set).
ƒNearly Equal
A0.1Result
B0.1
Error Tolerance1e-06
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | number | 0.1 | – |
Bb | number | 0.1 | – |
Error Tolerancewithin | number | 1e-06 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | bool |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(((Math.abs(0.1 - 0.1) <= 0.000001)));In a graph
◆On Scene Start
ƒNearly Equal
A0.1Result
B0.1
Error Tolerance1e-06
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.