Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

VersionDescription
1.0.0initial version

Author

Allan CORNET