10.5 IsInt

IsInt( obj )

IsInt returns true if obj, which can be an arbitrary object, is an integer and false otherwise. IsInt will signal an error if obj is an unbound variable.

    gap> IsInt( 1 );
    true
    gap> IsInt( IsInt );
    false        # 'IsInt' is a function, not an integer 

Previous Up Top Next
Index

GAP 3.4.4
April 1997