I have a double called average. If its output is 0.8266666531562805 how do I format it to display as 82.67%
Current line:
System.out.println("Your score is: " + average);
>Solution :
DecimalFormat df = new DecimalFormat("#.##%");
df.format(0.8266666531562805);