is_nonnegative_integer

mathtools.is_nonnegative_integer(argument)

Is true when argument equals a nonnegative integer. Otherwise false.

>>> mathtools.is_nonnegative_integer(99)
True
>>> mathtools.is_nonnegative_integer(0)
True
>>> mathtools.is_nonnegative_integer(-1)
False

Returns true or false.