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

Boole

Inputs

TypeNameDefaultDescription
RealxReal input

Outputs

TypeNameDefaultDescription
BooleanyBoolean output

Revisions

  • Added Inline = true in v2.1.0.