ml_assert_nonnegint

Checks if a value is a nonnegative, real integer.

Contents

Syntax

ml_assert_nonnegint(value)
ml_assert_nonnegint(value, name)

Description

This function checks if a given value is a real, nonnegative integer value and throws an error if not.

Input

Output

---

See Also

ml_assert_nonnegintinf | ml_assert_nonnegscalar