3.
If, in your application, it is enough to know whether the given object
x is equal to an integer, then you could do "x in ZZ". Note that this
property has nothing to do with the type!


CONCLUSION:

We already have four different meanings of the question "Is x an
integer?". Since different meanings of the question require different
answers, there is certainly not *one* single test for "bein an
integer" in Sage.

Well. I didn't think to that. Thanks very much for your answer. I take the third solution :) In my case, I just want to make the difference between numbers like pi/2 and 90 in order to guess if the user is thinking about degrees or radian.

Laurent

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to