Click or drag to resize
gmp_libmpf_size Method
Return the number of limbs currently in use.

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 size_t mpf_size(
	mpf_t op
)

Parameters

op
Type: Math.Gmp.Nativempf_t
The operand float.

Return Value

Type: size_t
The number of limbs currently in use.
Examples
// Set default precision to 64 bits.
gmp_lib.mpf_set_default_prec(64U);

// Create, initialize, and set a new floating-point number x.
mpf_t x = "1.00000000000000000000001";

// Assert that the size of x is 1.
Assert.IsTrue(gmp_lib.mpf_size(x) == 4);

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