Class: Bignum
- Inherits:
-
Object
- Object
- Bignum
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#to_fr ⇒ Object
Convert to MPFR.
Instance Method Details
#to_fr ⇒ Object
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;
}
|