up previous next
IsInteger

check if a RINGELEM is integer

Syntax
IsInteger(ref n: INT, f: RINGELEM): BOOL

Description
This function tests whether the argument f is integer and convert it into an INT . To convert f straight away use AsINT(f) .

Example
/**/ use R ::= QQ[x];
/**/ f := x-x-3;  f;  type(f);
-3
RINGELEM
/**/ IsInteger(ref a, x-x-3);
true
/**/ a;  type(a);
-3
INT

See Also