GMP Native Interface for .NET
gmp_libmpf_size Method |
Return the number of limbs currently in use.
Namespace: Math.Gmp.Native
Assembly: Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)

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
Parameters
- op
- Type: Math.Gmp.Nativempf_t
The operand float.
Return Value
Type: size_tThe number of limbs currently in use.

// 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.
