Of course, a given locale uses only one of these characters for this purpose.
Here is an applet that formats an integer
using DecimalFormat.format()
If you enter characters that can't be converted to an int
,
an error message will be written.
Incorrect character strings include those that contain
commas, dots, or spaces.
The input must be unformatted.
Other incorrect strings include those for integers that
are too big (greater in magnitude than about two billion).
How would you prefer to see this number displayed:
12345.6789