Ask Your Question

Revision history [back]

The str method of integers does that:

sage: a = 12
sage: a.str(7)
'15'