Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

x.digits() for x decimal

Let sage: x=1416 sage: v=x.digits() sage: v.reverse(); v gives [1, 4, 1, 6] That doesn't work for x decimal, as x=3.1416 I would like to have [3, 1, 4, 1, 6] as result in a simple way.