Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-12-28 18:03:46 -0500

DSM gravatar image

You can use the str method:

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'