is_integer_equivalent_expr

mathtools.is_integer_equivalent_expr(expr)

Is true when expr is an integer-equivalent number.

>>> mathtools.is_integer_equivalent_expr(12.0)
True

Is true when expr evaluates to an integer:

>>> mathtools.is_integer_equivalent_expr('12')
True

Otherwise false:

>>> mathtools.is_integer_equivalent_expr('foo')
False

Returns true or false.