> But something like the "%.%de " %n is exactly what I am looking for - if I >could get it to work. Sorry my bad, I missed a % sign: >>> n=5 >>> "%%.%de" % n '%.5e' You need two %% to create a % in the output. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
- [Tutor] specifying precision with scientific notation Andre' Walker-Loud
- Re: [Tutor] specifying precision with scientific n... Evert Rol
- Re: [Tutor] specifying precision with scientific n... Alan Gauld
- Re: [Tutor] specifying precision with scientif... Andre' Walker-Loud
- Re: [Tutor] specifying precision with scie... Andre' Walker-Loud
- Re: [Tutor] specifying precision with scie... ALAN GAULD