[Tutor] Hummm...dubious behavior.

Gregor Lingl glingl@aon.at
Mon, 17 Dec 2001 23:34:25 +0100


----- 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