Displaying numbers

Max Møller Rasmussen maxm at normik.dk
Wed Aug 16 08:19:52 EDT 2000


From: saxferra at my-deja.com [mailto:saxferra at my-deja.com]

>I would like to find out how to control the displayed format of the
>numbers. 

Maybe you are thinking about:

>>> print  "this number has the value %4.2f" % (23.244534)
this number has the value 23.24

Regards Max M Rasmussen




More information about the Python-list mailing list