- or download this
SV * Rmpfr_out_str(SV * p, SV * base, SV * dig, SV * round) {
if(SvIV(base) < 2 || SvIV(base) > 36) croak("2nd argument supplie
+d to Rmpfr_out_str is out of allowable range (must be between 2 and 3
+6 inclusive)");
return newSVuv(mpfr_out_str(NULL, SvUV(base), SvUV(dig), *(INT2PT
+R(mpfr_t *, SvIV(SvRV(p)))), SvUV(round)));
}
- or download this
SV * Rmpfr_out_str(SV * p, SV * base, SV * dig, SV * round) {
unsigned long ret;
...
printf("\n");
return newSVuv(ret);
}
- or download this
mpfr_get_str(out, expptr, b, n_dig, *(INT2PTR(mpfr_t *, SvIV(SvRV(p)))
+), SvUV(round));
- or download this
mpfr_get_str(out, expptr, b, SvUV(n_digits), *(INT2PTR(mpfr_t *, SvIV(
+SvRV(p)))), SvUV(round));