+ 1
How do you print a two decimal output in java?
21st Oct 2021, 8:50 AM
Leoror

2 Réponses
+ 5
System.out.printf("%.2f", val);
21st Oct 2021, 9:01 AM
Coding Cat

+ 1
Coding Cat Thank you!
21st Oct 2021, 9:53 AM
Leoror

Vous avez souvent des questions comme celle-ci ?
Apprenez de manière plus efficace, gratuitement :
Aujourd'hui en vedette
Kernel in Jupyter
2 Votes
SQL
2 Votes
JAVA PROGRAMMING
1 Votes
What Does Pseudo Elements Mean.
2 Votes
HTML/CSS questions
0 Votes
IMAGE
0 Votes