Int( obj )
Int
converts an object obj to an integer. If obj is an integer
Int
will simply return obj.
If obj is a rational number (see Rationals) Int
returns the unique
integer that has the same sign as obj and the largest absolute value
not larger than the absolute value of obj.
If obj is an element of the prime field of a finite field F, Int
returns the least positive integer n such that n* F.one = obj
(see IntFFE).
If obj is not of one of the above types an error is signalled.
gap> Int( 17 ); 17 gap> Int( 17 / 3 ); 5 gap> Int( Z(5^3)^62 ); 4 # $Z(5^3)^{62}=(Z(5^3)^{124/4})^2=Z(5)^2=PrimitiveRoot(5)^2=2^2$
GAP 3.4.4