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

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
Parameters
- prec
- Type: Math.Gmp.Nativemp_bitcnt_t
The minimum precision in bits.

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.
