GAP Manual: 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 

[next] [prev] [up]