gmp_libmpq_clear Method |
Namespace: Math.Gmp.Native
public static void mpq_clear( mpq_t x )
Public Shared Sub mpq_clear ( x As mpq_t )
public: static void mpq_clear( mpq_t^ x )
static member mpq_clear : x : mpq_t -> unit
Make sure to call this function for all mpq_t variables when you are done with them.
// Create and initialize a new rational x. mpq_t x = new mpq_t(); gmp_lib.mpq_init(x); // Assert that the value of x is 0.0. Assert.IsTrue(gmp_lib.mpq_get_d(x) == 0.0); // Release unmanaged memory allocated for x. gmp_lib.mpq_clear(x);
' Create and initialize a new rational x. Dim x As New mpq_t() gmp_lib.mpq_init(x) ' Assert that the value of x is 0.0. Assert.IsTrue(gmp_lib.mpq_get_d(x) = 0.0) ' Release unmanaged memory allocated for x. gmp_lib.mpq_clear(x)
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.