Click or drag to resize
gmp_libmpf_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 mpf_clear(
	mpf_t x
)

Parameters

x
Type: Math.Gmp.Nativempf_t
The operand float.
Remarks

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

Examples
// Set default precision to 64 bits.
gmp_lib.mpf_set_default_prec(64U);

// Create and initialize a new floating-point number x.
mpf_t x = new mpf_t();
gmp_lib.mpf_init(x);

// Assert that the value of x is 0.0.
Assert.IsTrue(gmp_lib.mpf_get_d(x) == 0.0);

// Release unmanaged memory allocated for x.
gmp_lib.mpf_clear(x);
See Also