gmp_libmpf_size Method |
Namespace: Math.Gmp.Native
public static size_t mpf_size( mpf_t op )
Public Shared Function mpf_size ( op As mpf_t ) As size_t
public: static size_t mpf_size( mpf_t^ op )
static member mpf_size : op : mpf_t -> size_t
// Set default precision to 64 bits. gmp_lib.mpf_set_default_prec(64U); // Create, initialize, and set a new floating-point number x. mpf_t x = "1.00000000000000000000001"; // Assert that the size of x is 1. Assert.IsTrue(gmp_lib.mpf_size(x) == 4); // Release unmanaged memory allocated for x. gmp_lib.mpf_clear(x);
' Set default precision to 64 bits. gmp_lib.mpf_set_default_prec(64UI) ' Create, initialize, and set a new floating-point number x. Dim x As mpf_t = "1.00000000000000000000001" ' Assert that the size of x is 1. Assert.IsTrue(gmp_lib.mpf_size(x) = 4) ' Release unmanaged memory allocated for x. gmp_lib.mpf_clear(x)
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.