Go to the first, previous, next, last section, table of contents.


Comparison Functions

Function: int mpz_cmp (mpz_t op1, mpz_t op2)
Function: int mpz_cmp_ui (mpz_t op1, unsigned long int op2)
Function: int mpz_cmp_si (mpz_t op1, signed long int op2)
Compare op1 and op2. Return a positive value if op1 > op2, zero if op1 = op2, and a negative value if op1 < op2.

Function: int mpz_sgn (mpz_t op)
Return +1 if op > 0, 0 if op = 0, and -1 if op < 0.


Go to the first, previous, next, last section, table of contents.