gmp_libmpz_cmpabs Method |
Namespace: Math.Gmp.Native
public static int mpz_cmpabs( mpz_t op1, mpz_t op2 )
Public Shared Function mpz_cmpabs ( op1 As mpz_t, op2 As mpz_t ) As Integer
public: static int mpz_cmpabs( mpz_t^ op1, mpz_t^ op2 )
static member mpz_cmpabs : op1 : mpz_t * op2 : mpz_t -> int
// Create, initialize, and set the value of op1 to -63. mpz_t op1 = new mpz_t(); gmp_lib.mpz_init_set_si(op1, -63); // Create, initialize, and set the value of op2 to 70. mpz_t op2 = new mpz_t(); gmp_lib.mpz_init_set_ui(op2, 70U); // Assert that |op1| < |op2|. Assert.IsTrue(gmp_lib.mpz_cmp(op1, op2) < 0); // Release unmanaged memory allocated for op1 and op2. gmp_lib.mpz_clears(op1, op2, null);
' Create, initialize, and set the value of op1 to -63. Dim op1 As New mpz_t() gmp_lib.mpz_init_set_si(op1, -63) ' Create, initialize, and set the value of op2 to 70. Dim op2 As New mpz_t() gmp_lib.mpz_init_set_ui(op2, 70UI) ' Assert that |op1| < |op2|. Assert.IsTrue(gmp_lib.mpz_cmp(op1, op2) < 0) ' Release unmanaged memory allocated for op1 and op2. gmp_lib.mpz_clears(op1, op2, Nothing)
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.