diff options
| author | Raymond Hettinger <python@rcn.com> | 2009-04-17 18:58:06 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2009-04-17 18:58:06 +0000 |
| commit | 892f2217626e14e799e621bb89238872998f0f20 (patch) | |
| tree | d77b8f65fb8a02661f934a7277b2b1735407fbd2 | |
| parent | a319b243fa25d22b7283a8c6c91b73be12ff48bc (diff) | |
| download | cpython-892f2217626e14e799e621bb89238872998f0f20.tar.gz | |
Add more examples.
| -rw-r--r-- | Doc/whatsnew/3.1.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index 014cc4f49e..1fe2de8724 100644 --- a/Doc/whatsnew/3.1.rst +++ b/Doc/whatsnew/3.1.rst @@ -90,6 +90,10 @@ a mini-language that now includes a simple, non-locale aware way to format a number with a thousands separator. That provides a way to humanize a program's output, improving its professional appearance and readability:: + >>> format(1234567, ',d') + '1,234,567' + >>> format(1234567.89, ',.2f') + '1,234,567.89' >>> format(Decimal('1234567.89'), ',f') '1,234,567.89' |
