Re: [sage-support] Test if a variable is numerical

2010-05-07 Thread Robert Bradshaw
Try doing x in RR - Robert On May 7, 2010, at 2:38 PM, Nathann Cohen wrote: Hello everybody !!! I am trying to find out how to check whether some Sage variable is numerical (let's say real, as opposed to None, False, {}, Set([]), etc..), but was not lucky on Google... ^^; Do you know the

Re: [sage-support] Test if a variable is numerical

2010-05-07 Thread Nathann Cohen
Thank you !!! :-) Would there be any way to do the same thing without having to import RR in all of my functions, though ? It's really mainly to distinguish numerical values from different types, so I thought there may be a Python way to do it ... Though it perfectly works like that ! :-)