zzzzw
public class $66 {

    public static void main(String agrs[])
    {
        float a=(float) 1.123456789;//8位
        System.out.println(a);//1.1234568
    

        double aa=10.123456789123456789;//17位
        System.out.println(aa);//    10.123456789123457
    }
}

 

 1 public class $66 {
 2 
 3     public static void main(String agrs[])
 4     {
 5         float a=(float) 12.123456789;//8位
 6         System.out.println(a);//12.123457
 7     
 8 
 9         double aa=101.123456789123456789;//17位
10         System.out.println(aa);//    10.123456789123457
11     }
12 }

 

分类:

技术点:

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案