Click or drag to resize
gmp_libmpf_set_default_prec Method
Set the default precision to be at least prec bits.

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_set_default_prec(
	mp_bitcnt_t prec
)

Parameters

prec
Type: Math.Gmp.Nativemp_bitcnt_t
The minimum precision in bits.
Remarks

All subsequent calls to mpf_init will use this precision, but previously initialized variables are unaffected.

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

// Assert that the value of x is 128 bits.
Assert.IsTrue(gmp_lib.mpf_get_default_prec() == 128U);
See Also