However, these operate on sign-magnitude, rather than two's complement representations. The sign of the result is arbitrarily taken as the sign of the first argument. Bit operators are also provided in the BitSet and BitString classes. One of these classes should be used instead of Integers when the results of bit manipulations are not interpreted numerically. The following utility functions are also provided.
Sets q to the quotient and r to the remainder of x and y .
Returns x raised to the power p . Returns x raised to the power p . Returns the greatest common divisor of x and y .