日期:2014-05-20 浏览次数:20728 次
float f0 = 0.12345678901234567890123456789f;
float f1 = 1.12345678901234567890123456789f;
float f2 = 2.12345678901234567890123456789f;
float f4 = 4.12345678901234567890123456789f;
double d0 = 0.12345678901234567890123456789;
double d1 = 1.12345678901234567890123456789;
double d2 = 2.12345678901234567890123456789;
double d4 = 4.12345678901234567890123456789;
System.out.println(f0);
System.out.println(f1);
System.out.println(f2);
System.out.println(f4);
System.out.println(d0);
System.out.println(d1);
System.out.println(d2);
System.out.println(d4);
0.12345679
1.1234568
2.1234567
4.123457
0.12345678901234568
1.1234567890123457
2.1234567890123457
4.123456789012345