Add notes on what Java does.
This commit is contained in:
parent
a6db11b356
commit
238bb5919c
10
pep-0378.txt
10
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)
|
||||
=====================================================================
|
||||
|
|
Loading…
Reference in New Issue