<<< The NumberFormat class, cont. | Index | The percent format example >>> |
double price = 11.575; NumberFormat currency = NumberFormat.getCurrencyInstance(); String priceString = currency.format(price); // returns $11.58
<<< The NumberFormat class, cont. | Index | The percent format example >>> |