Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+5 votes
asked in CSC211_Winter2018 by (8 points)

2 Answers

+5 votes

System.out.printf ("Here is a double: %.2f" , double value or variable);

answered by (8 points)
+4 votes

You can try something like this:
double example = 0.24556;
System.out.printf("Example: %.2f", example);

answered by (8 points)