mustBeFinite

Checks that value is finite or raise an error.

📝 Syntax

  • mustBeFinite(var)

  • mustBeFinite(var, argPosition)

  • C++: void mustBeFinite(const ArrayOfVector& args, int argPosition)

📥 Input argument

  • var - a variable: all supported types and classes that implement isfinite methods.

  • argPosition - a positive integer value: Position of input argument.

📄 Description

mustBeFinite checks that value is finite or raise an error.

Empty values are ignored.

💡 Example

mustBeFinite(1)
mustBeFinite(Inf)

🔗 See also

isfinite, isempty.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?