gmp_libgmp_printf Method |
Namespace: Math.Gmp.Native
public static int gmp_printf( string fmt, params Object[] args )
Public Shared Function gmp_printf ( fmt As String, ParamArray args As Object() ) As Integer
public: static int gmp_printf( String^ fmt, ... array<Object^>^ args )
static member gmp_printf : fmt : string * args : Object[] -> int
mpz_t z = "123456"; mpq_t q = "123/456"; mpf_t f = "12345e6"; mp_limb_t m = 123456; // Print to standard output. Assert.IsTrue(gmp_lib.gmp_printf("%Zd - %QX - %Fa - %Mo", z, q, f, m) == 42); // Release unmanaged memory. gmp_lib.mpz_clear(z) gmp_lib.mpq_clear(q) gmp_lib.mpf_clear(f)
Dim z As mpz_t = "123456" Dim q As mpq_t = "123/456" Dim f As mpf_t = "12345e6" Dim m As mp_limb_t = 123456 ' Print to standard output. Assert.IsTrue(gmp_lib.gmp_printf("%Zd - %QX - %Fa - %Mo", z, q, f, m) = 42) ' Release unmanaged memory. gmp_lib.mpz_clear(z) gmp_lib.mpq_clear(q) gmp_lib.mpf_clear(f)
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.