10.8 SignInt

SignInt( obj )

SignInt returns the sign of the integer obj, i.e., 1 if obj is positive, -1 if obj is negative and 0 if obj is 0 (see AbsInt).

    gap> SignInt( 33 );
    1
    gap> SignInt( -214378 );
    -1
    gap> SignInt( 0 );
    0 

Previous Up Top Next
Index

GAP 3.4.4
April 1997