functionnotZeroQ
Yields true if input is different from zero
Extends from BusinessSimulation.Icons.Function (Icon for functions).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The function returns false if the real input x is zero and true in all other cases.
Syntax
Functions.notZeroQ(x)
Examples
import BusinessSimulation.Constants.small;
Functions.notZeroQ(0.0); // false
Functions.notZeroQ(1.2); // true
Functions.notZeroQ(-5); // true
Functions.notZeroQ(small); // true
Notes
This functions is somewhat like an "inverse" Boole.
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Real input |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | y | Boolean output |
Revisions
- Added
Inline = truein v2.1.0.