Closed
Description
If a real number is exactly an integer, it should be possible to coerce to an Integer, but this is what happens:
sage: Integer(RR(2.0))
---------------------------------------------------------------------------
<type 'exceptions.TypeError'> Traceback (most recent call last)
/Users/david/sage-2.8.5/<ipython console> in <module>()
/Users/david/sage-2.8.5/integer.pyx in integer.Integer.__init__()
<type 'exceptions.TypeError'>: unable to coerce element to an integer
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/835