<< mustBeNegative Validators mustBeNonSparse >>

mustBeNonNan


Checks that value is not NaN.


Syntax


mustBeNonNan(var)
mustBeNonNan(var, argPosition)
C++: void mustBeNonNan(const ArrayOfVector& args, int argPosition)

Input argument


var

a variable: all supported types and classes that implement isnan methods.

argPosition

a positive integer value: Position of input argument.

Description


mustBeNonNan checks that value is not NaN or raise an error.

Example


mustBeNonNan(1)
mustBeNonNan([])
mustBeNonNan(NaN)

See also


isempty, isnan.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< mustBeNegative Validators mustBeNonSparse >>