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
Copyright © Jan Newmarch, Monash University, 2007
This work is licensed under a
Creative Commons License
The moral right of Jan Newmarch to be identified as the author of this page has been asserted.