10.7 AbsInt

AbsInt( n )

AbsInt returns the absolute value of the integer n, i.e., n if n is positive, -n if n is negative and 0 if n is 0 (see SignInt).

    gap> AbsInt( 33 );
    33
    gap> AbsInt( -214378 );
    214378
    gap> AbsInt( 0 );
    0 

Previous Up Top Next
Index

GAP 3.4.4
April 1997