gmp_libmpf_get_default_prec Method |
Namespace: Math.Gmp.Native
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
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.