all_are_nonnegative_integer_equivalent_numbers

mathtools.all_are_nonnegative_integer_equivalent_numbers(argument)

Is true when argument is an iterable collection of nonnegative integer-equivalent numbers. Otherwise false.

>>> items = [0, 0.0, Fraction(0), 2, 2.0, Fraction(2)]
>>> mathtools.all_are_nonnegative_integer_equivalent_numbers(items)
True
>>> items = [0, 0.0, Fraction(0), -2, 2.0, Fraction(2)]
>>> mathtools.all_are_nonnegative_integer_equivalent_numbers(items)
False

Returns true or false.