| 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).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.