Add notes on what Java does.

This commit is contained in:
Raymond Hettinger 2009-03-17 19:38:35 +00:00
parent a6db11b356
commit 238bb5919c
1 changed files with 10 additions and 0 deletions

View File

@ -141,6 +141,16 @@ specifiers like::
.. _`COBOL`: http://en.wikipedia.org/wiki/Cobol#Syntactic_features
Java offers a `Decimal.Format Class`_ that uses picture patterns (one
for positive numbers and an optional one for negatives) such as:
``"#,##0.00;(#,##0.00)"``. It allows arbitrary groupings including
hundreds and ten-thousands and uneven groupings. The special patten
characters are non-localized (using a DOT for a decimal separator and
a COMMA for a grouping separator). The user can supply an alternate
set of symbols using the formatter's *DecimalFormatSymbols* object.
.. _`Decimal.Format Class`: http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html
Alternative Proposal (from Eric Smith, originally called Proposal II)
=====================================================================