Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes
asked in CSC211_Winter2018 by (1 point)

2 Answers

+5 votes

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

answered by (1 point)
+4 votes

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

answered by (1 point)
...