Numbers and money
Numbers
-
Number formats vary in different cult
-
Group (e.g. thousands) and decimal separators
e.g. 1,234.56 (US) vs 1 234,56 (France)
-
Negative numbers e.g. -123 (US) vs 123- (Arabic)
-
-
-
-
NumberFormat
-
The Java class to handle display of numbers is
NumberFormat
-
Factory methods such as
NumberFormat.getInstance(Locale);
will get a formatting object
-
A number may be formatted into a string
-
-
-
-
Jan Newmarch <jan@newmarch.name>
Last modified: Thu Mar 31 17:29:51 EST 2005