The following lines:
System.out.println(Locale.getDefault()); System.out.println(String.format("%f", 1000 * Math.PI)); System.out.printf("%f\n", 1000 * Math.PI);
print:
en_US 3141.592654 3141.592654
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article