Is Nearly Zero
PureIsNearlyZeroChecks if a float is approximately zero within tolerance.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Value | float | — | Value parameter |
| Tolerance | float | 0.0001 | Tolerance parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | bool | ReturnValue output |
Example Use Cases
Example 1
Determine if velocity has effectively stopped.
Example 2
Check if a rotation delta is negligible.