gmp_libmpf_set_default_prec Method |
Namespace: Math.Gmp.Native
public static void mpf_set_default_prec( mp_bitcnt_t prec )
Public Shared Sub mpf_set_default_prec ( prec As mp_bitcnt_t )
public: static void mpf_set_default_prec( mp_bitcnt_t prec )
static member mpf_set_default_prec : prec : mp_bitcnt_t -> unit
All subsequent calls to mpf_init will use this precision, but previously initialized variables are unaffected.
// 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.