is_integer_equivalent_number

mathtools.is_integer_equivalent_number(expr)

Is true when expr is a number and expr is equivalent to an integer.

>>> mathtools.is_integer_equivalent_number(12.0)
True

Otherwise false:

>>> mathtools.is_integer_equivalent_number(Duration(1, 2))
False

Returns true or false.