Float to Bool
Maps zero to false and every nonzero value to true.
Behavior
Section titled “Behavior”At every sample, y = (u != 0.0).
| Direction | Name | Type |
|---|---|---|
| Input | u |
f64 |
| Output | y |
bool |
Parameters
Section titled “Parameters”None.
Example
Section titled “Example”Input samples -2.0, 0.0, 0.5 produce true, false, true.