返回列表 發帖
  1. public class Ch100 {
  2.         public static void main(String args[])
  3.         {
  4.                 double k=3.1415926;
  5.                 String res=String.format("%.2f",k);
  6.                 System.out.println(res);
  7.         }
  8.        
  9.        
  10. }
複製代碼

TOP

返回列表