|
|
|
|||
|
Numbers and CurrenciesPrograms store and operate on numbers in a locale-independent way. Before displaying or printing a number, a program must convert it to aString that is in a locale-sensitive format. For example,
in France the number 123456.78 should be formatted as 123 456,78, and
in Germany it should appear as 123.456,78. In this section, you will
learn how to make your programs independent of the locale conventions
for decimal points, thousands-separators, and other formatting
properties.
Using Predefined Formats
Using the
the factory methods provided by the
Formatting with Patterns
With the | |||
|