±Û¾´ÀÌ :À±°æ±¸ 2000³â 2¿ù 29ÀÏ 13:52:19
In Reply to: [Áú¹®] double number ÀÇ Ãâ·Â¹æ¹ý posted by ÀÌÅ¿µ on 2000³â 2¿ù 29ÀÏ 12:45:37:
´ÙÀ½°ú °°ÀÌ Çغ¸¼¼¿ä...
double value = 1.0 / 3.0;
try {
String formatted = new java.text.DecimalFormat("0.00").format(value);
System.out.println("value = " + value);
System.out.println("formatted = " + formatted);
} catch (IllegalArgumentException e) {
System.out.println("Exception : " + e);
}