Posts by agnes • 41 points
1 post
-
4
votes2
answers1829
viewsQ: How to print a decimal number with a dot, not a comma?
If I do: float a=5; System.out.printf("%d", a); His exit will be: 5.000000 How do I print 5.000000? I mean, I want to replace the comma with the dot.…