First time here? Check out the FAQ!
answered 2012-12-29 01:03:46 +0100
You can use the str method:
str
sage: (13/7) 13/7 sage: (13/7).str(base=6) '21/11' sage: (13/7).n() 1.85714285714286 sage: (13/7).n().str(base=6) '1.505050505050505050511'