Click or drag to resize
gmp_libmpq_clear Method
Free the space occupied by x.

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 void mpq_clear(
	mpq_t x
)

Parameters

x
Type: Math.Gmp.Nativempq_t
The operand rational.
Remarks

Make sure to call this function for all mpq_t variables when you are done with them.

Examples
// 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);
See Also