----- Original Message ----- From: <alan.gauld@bt.com> > Thus: > > >>> print "%5.3" % math.pi > 3.142 This should read >>> print "%5.3f" % math.pi 3.142 otherwise a ValueError would occur. Gregor