mpfr_libmpfr_set_default_rounding_mode Method |
Namespace: Math.Mpfr.Native
public static void mpfr_set_default_rounding_mode( mpfr_rnd_t rnd )
Public Shared Sub mpfr_set_default_rounding_mode ( rnd As mpfr_rnd_t )
public: static void mpfr_set_default_rounding_mode( mpfr_rnd_t rnd )
static member mpfr_set_default_rounding_mode : rnd : mpfr_rnd_t -> unit
The default rounding mode is to nearest initially.
// Set default rounding mode. mpfr_lib.mpfr_set_default_rounding_mode(mpfr_rnd_t.MPFR_RNDN); // Assert default rounding mode. Assert.IsTrue(mpfr_lib.mpfr_get_default_rounding_mode() == mpfr_rnd_t.MPFR_RNDN);
' Set default rounding mode. mpfr_lib.mpfr_set_default_rounding_mode(mpfr_rnd_t.MPFR_RNDN) ' Assert default rounding mode. Assert.IsTrue(mpfr_lib.mpfr_get_default_rounding_mode() = mpfr_rnd_t.MPFR_RNDN)
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.