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

TOP

返回列表