java 用float和double指数记数法所能表示的最大和最小的数字
public class MaxMinFloatDouble {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
float fmax = Float.MAX_VALUE;
float fmin = Float.MIN_VALUE;
double dmax = Double.MAX_VALUE;
double dmin = Double.MIN_VALUE;
System.out.println(fmax);
System.out.println(fmin);
System.out.println(dmax);
System.out.println(dmin);
/*result:
3.4028235E38
1.4E-45
1.7976931348623157E308
4.9E-324*/
}
}