I need something like this
a = 101010/0;
If[a == ComplexInfinity, True, False]
But if I use ToString, I get what I want.
a = 101010/0;
If[ToString[a] == "ComplexInfinity", True, False]
Does someone know a better way to do this?, I can't belive that transforming to a string is the only way.
SameQ(===) i.e.If[a === ComplexInfinity, True, False]– RunnyKine Sep 13 '14 at 22:30Indeterminatebut the question shows onlyComplexInfinity-- do you mean both symbols, or just one, or something else? – Michael E2 Sep 13 '14 at 23:19