diff --git a/pep-0378.txt b/pep-0378.txt index a4994cc9a..fb01d86f3 100644 --- a/pep-0378.txt +++ b/pep-0378.txt @@ -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) =====================================================================