Formatted Output - Floating Point Numbers

Terry Reedy tjreedy at udel.edu
Sat Nov 16 16:39:57 EST 2002


"David Marshall" <maximum_hops at yahoo.co.uk> wrote in message
news:d8d62a73.0211161321.12603c31 at posting.google.com...
> Im new to python and I was wondering if anybody could tell me how to
> modify the output to only obtaiu 2 decimal places.

Look up % formating operator.  tjr





More information about the Python-list mailing list