[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Tue, 4 Dec 2007 19:51:37 +0000 Dave Berkeley <dcglug@xxxxxxxxxxxxx> wrote: > > see the comments on this cookbook entry (not the entry itself) > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473872 > > >>> import locale > >>> locale.setlocale(locale.LC_NUMERIC, '') > 'en_GB.UTF-8' > >>> locale.format("%.*f", (2, 12345678), True) > '12,345,678.00' > > D > Thanks, I have had a look at that. I can now see several ways of getting the output I want so I will check them out and choose the one I like best. Neil Winchurst -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html