On Nov 11, 11:39 am, Eviatar <eviatarb...@gmail.com> wrote: > Yes, but can you go directly from base 2 to base 4, for example? I > guess this would work, ZZ(23,base=2).str(base=4), but it's not very > convenient.
sage: ZZ([1, 2], base=3) 7 sage: ZZ([1, 2], base=3).digits(2) [1, 1, 1] My opinion is that this is short and already well supported, and much more general than the special function OP suggests. 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