Is Nearly Zero

Pure
IsNearlyZero

Checks if a float is approximately zero within tolerance.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
ValuefloatValue parameter
Tolerancefloat0.0001Tolerance parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output

Example Use Cases

Example 1

Determine if velocity has effectively stopped.

Example 2

Check if a rotation delta is negligible.