arb
arb copied to clipboard
Feature request: `arf_set_str`
Since there is a function char * arf_get_str(const arf_t x, slong prec)
, it will be good to also define a function with the effect of
inline int arf_set_str(arf_t res, const char * inp, slong prec)
{
arb_t y; arb_init(y);
if (arb_set_str(y, inp, prec))
return 1;
arf_set(res, &y->mid);
return 0;
}