First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You could use python's string formatting to print numbers in scientific notation:

sage: n = 215.685
sage: print "my number is %e"%n
my number is 2.156850e+02
sage: print "my number is %E"%n
my number is 2.156850E+02

Is that the kind of thing you're looking for?