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.
Functions.notZeroQ(x)
import BusinessSimulation.Constants.small;
Functions.notZeroQ(0.0); // false
Functions.notZeroQ(1.2); // true
Functions.notZeroQ(-5); // true
Functions.notZeroQ(small); // true
This functions is somewhat like an "inverse" Boole.
function notZeroQ extends BusinessSimulation.Icons.Function; input Real x "Real input"; output Boolean y "Boolean output"; end notZeroQ;
Inline = true
in v2.1.0.