Ron Adam wrote: > > Greg Ewing wrote: > > > How does this work with formats where the number of > > digits before the decimal can vary, but before+after > > is constant? > > I think this is what you're looking for. > > f>15,.3 #15 field width, 3 decimal places, right aligned.
No, I'm talking about formats such as "g" where the number of significant digits is fixed, but the position of the decimal point can change depending on the magnitude of the number. That wouldn't fit into your before.after format. >> Also, my feeling about the whole of this is that >> it's too complicated. > > it's because we are doing a lot in a very little space. Yes, and I think you're trying to do a bit too much. The format strings are starting to look like line noise. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
