Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

See the printf-like python string formatting options here

See the printf-like python string formatting options here. As an example:

sage: "%0.2f"%pi
'3.14'
sage: "%e"%pi
'3.141593e+00'