Message86080
Sounds good to me, too.
It looks as though the Decimal type already does this:
Python 3.1a2+ (py3k:71669:71684M, Apr 17 2009, 19:23:53)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import Decimal
>>> format(Decimal('1.2'), '010.2')
'00000001.2'
>>> format(Decimal('1.2'), '010,.2')
'0,000,001.2' |
|
Date |
User |
Action |
Args |
2009-04-17 18:33:16 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, eric.smith |
2009-04-17 18:33:16 | mark.dickinson | set | messageid: <1239993196.17.0.915079550243.issue5782@psf.upfronthosting.co.za> |
2009-04-17 18:33:14 | mark.dickinson | link | issue5782 messages |
2009-04-17 18:33:14 | mark.dickinson | create | |
|