Go to the first, previous, next, last section, table of contents.
- 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)
-
@ifnottex
Compare op1 and op2. Return a positive value if op1 >
op2, zero if op1 = op2, and a negative value if op1 <
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)
-
@ifnottex
Return +1 if op > 0, 0 if op = 0, and -1 if op < 0.
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.