How to not show e8? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
5th Sep 2018, 11:34 AM
nuckkkk
nuckkkk - avatar
2 Answers
+ 1
use System.out.printf("%.0f",d); For formatted output. %f will show a lot decimal zeros, to get rid of them use %.0f
5th Sep 2018, 11:48 AM
Matthias
Matthias - avatar
0
Thank you so much
5th Sep 2018, 12:19 PM
nuckkkk
nuckkkk - avatar