As I said previously, you are only going to reconstruct RATIONALs with num,den less than sqrt((1/2)*p^k), i.e. 92 in this case. It is true that the integers are a subset of the rationals, but the "convert to integer" problem is not a sub-problem of the "convert to rational" problem.
On Jun 16, 3:22 pm, Mel <chemmyg...@gmail.com> wrote: > I do want to convert to an integer in this particular case...but > integers are rationals, so I don't understand why I don't just get the > integer 344 when I try the following code: > > sage: K=Qp(7,5) > sage: Q=QQ > sage: a=344 > sage: b=K(a) > sage: a=Q(b) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org