Apologies if I misunderstood your question,
If you want to recover details of declared ring, use ringlist command. For example,
Code:
ring r = (real,55,57),x,dp;
ringlist(r); //Displays information regarding current ring as array of arrays.
Now,
int R_digits =ringlist(r)[1][2][1]; //55
int R_restdigits = ringlist(r)[1][2][2]; //57