gmp_libmpz_cmpabs_d Method |
Compare the absolute values of op1 and op2.
Namespace:
Math.Gmp.Native
Assembly:
Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static int mpz_cmpabs_d(
mpz_t op1,
double op2
)
Public Shared Function mpz_cmpabs_d (
op1 As mpz_t,
op2 As Double
) As Integer
public:
static int mpz_cmpabs_d(
mpz_t^ op1,
double op2
)
static member mpz_cmpabs_d :
op1 : mpz_t *
op2 : float -> int
Parameters
- op1
- Type: Math.Gmp.Nativempz_t
The first operand integer. - op2
- Type: SystemDouble
The second operand integer.
Return Value
Type:
Int32Return a positive value if
|op1| > |op2|, zero if
|op1| = |op2|, or a negative value if
|op1| < |op2|.
Remarks Examples
mpz_t op1 = new mpz_t();
gmp_lib.mpz_init_set_si(op1, -63);
Assert.IsTrue(gmp_lib.mpz_cmpabs_d(op1, -70.0) < 0);
gmp_lib.mpz_clear(op1);
Dim op1 As New mpz_t()
gmp_lib.mpz_init_set_si(op1, -63)
Assert.IsTrue(gmp_lib.mpz_cmpabs_d(op1, -70.0) < 0)
gmp_lib.mpz_clear(op1)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also