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