1 | initial version |
This is the expected behaviour. When you type 29
, the Sage preparser ensures that this number is considered as a Sage integer, whose inverse is a rational number. When you write int(29)
, the resulting number is a Python integer, whose inverse is a float
(i.e. the basic representation of real numbers in Python3).