Click or drag to resize
gmp_libmpf_get_default_prec Method
Return the default precision actually used.

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 mp_bitcnt_t mpf_get_default_prec()

Return Value

Type: mp_bitcnt_t
The default precision actually used.
Remarks

An mpf_t object must be initialized before storing the first value in it. The functions mpf_init and mpf_init2 are used for that purpose.

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