GMP Native Interface for .NET
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)

public static mp_bitcnt_t mpf_get_default_prec()
Public Shared Function mpf_get_default_prec As mp_bitcnt_t
public: static mp_bitcnt_t mpf_get_default_prec()
static member mpf_get_default_prec : unit -> mp_bitcnt_t
Return Value
Type: mp_bitcnt_tThe default precision actually used.

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.

// 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);
' Set default precision to 128 bits. gmp_lib.mpf_set_default_prec(128UI) ' Assert that the value of x is 128 bits. Assert.IsTrue(gmp_lib.mpf_get_default_prec() = 128UI)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
