is_integer_equivalent

mathtools.is_integer_equivalent(argument)

Is true when argument is an integer-equivalent number. Otherwise false.

>>> import abjad
>>> abjad.mathtools.is_integer_equivalent(12.0)
True
>>> abjad.mathtools.is_integer_equivalent('12')
True
>>> abjad.mathtools.is_integer_equivalent('foo')
False

Returns true or false.