<<< The currency format example | Index | The number format with one decimal place >>> |
double majority = .505; NumberFormat percent = NumberFormat.getPercentInstance(); String majorityString = percent.format(majority); // returns 50%
<<< The currency format example | Index | The number format with one decimal place >>> |