Feb
19
|
The NumberFormat and DecimalFormat classes provide support for parsing and formatting currency values.
For example to parse a string containing a money value in the default locale you can use the following.
NumberFormat format = NumberFormat.getCurrencyInstance(); Object value = format.parse("$5.45");
Leave a Reply
You must be logged in to post a comment.