Class: Bignum

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_frObject

Convert to MPFR.



3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
# File 'ext/mpfr/ruby_mpfr.c', line 3042

static VALUE r_mpfr_bignum_to_fr (int argc, VALUE *argv, VALUE self)
{
  MPFR *ptr_return;
  VALUE val_ret;
  mp_prec_t prec;
  prec = r_mpfr_prec_from_optional_argument(0, 1, argc, argv);
  r_mpfr_make_struct_init2(val_ret, ptr_return, prec);
  r_mpfr_convert_to_str_set(ptr_return, self, MPFR_RNDN);
  return val_ret;
}