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


Comparison Functions

Function: int mpf_cmp (mpf_t op1, mpf_t op2)
Function: int mpf_cmp_ui (mpf_t op1, unsigned long int op2)
Function: int mpf_cmp_si (mpf_t op1, signed long int op2)

Function: int mpf_eq (mpf_t op1, mpf_t op2, unsigned long int op3)
Return non-zero if the first op3 bits of op1 and op2 are equal, zero otherwise. I.e., test of op1 and op2 are approximately equal.

Function: void mpf_reldiff (mpf_t rop, mpf_t op1, mpf_t op2)
Compute the relative difference between op1 and op2 and store the result in rop.

Macro: int mpf_sgn (mpf_t op)

This function is actually implemented as a macro. It evaluates its arguments multiple times.


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