formatting numbers for output
Phlip
phlip_cpp at my-deja.com
Sun Feb 18 10:46:13 EST 2001
Proclaimed Fernando RodrÃguez from the mountaintops:
> Hi!
>
> How can I format a number so it pretty prints:
>
> 15,456.6 instead of 15456.6 ?
While you are at it, ensure the program prints 15.456,6 in parts of Europe
& certain other places.
(Seriously, "15 456.6" with just a space is a happy median.)
--
Phlip phlip_cpp at my-deja.com
============ http://c2.com/cgi/wiki?PhlIp ============
-- My opinions are those of your employer --
More information about the Python-list
mailing list