On Nov 11, 10:13 am, Eviatar <eviatarb...@gmail.com> wrote:
> Thank you,
>
> I wasn't aware of that functionality. However, I think my function is
> more convenient since you can directly convert bases, instead of using
> base 10 as an intermediary step.

sage: ZZ(15).digits(2)
[1, 1, 1, 1]
sage: ZZ(15).digits(3)
[0, 2, 1]

Nick

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to