Open Help
isnan~
Return 1 if input is NaN (Not a Number), else return zero.
Description
This operator detects the presence of NaN values, returning 1 if the input is NaN, and zero otherwise. A NaN (Not a Number) is a floating point data value which represents an undefined or unrepresentable value, such as the result of dividing by zero. Note that division and modulo operators in RNBO and gen protect against generating NaNs by default, so this should only be required for protecting against incoming values in exported code.
Inlets
NaN Input [auto]
The value to be tested for NaN errorsOutlets
Output [signal]
Returns 1 if input is NaNDynamic Attributes
These attributes can be modified in the code during execution using the set object
in1 [auto]
The value to be tested for NaN errors
reset [bang] (default: 0)
Reset inlets to default values.
See Also
Name | Description |
---|---|
fixnan | Replace NaN (Not a Number) values with zero. |
mod | Divide two values, output the remainder |
div | Divide inputs |