我想知道java中的简单类型的取值范围,要求在java.sun.com官网的答案,感谢
解决方案 »
- 求助!个人作业,不知道怎么弄,求各位强人帮忙!
- 编写一个程序把一个整数数组中的每个元素用逗号连接成一个字符串
- jdbc连数据库的问题,很奇怪
- 如何编译azureus源码?
- 如何获得文件创建日期?
- JTree更新的问题
- 学过javaEE的想学习javaSE需要学哪些东西
- 在linux底下用什么做java啊?(五百里加急!!)
- 我是java新手,不会配置sdk及运行时的命令,请指点,高分送上!
- 我怎样才能运行我的java程序(我装了JavaTM 2 SDK, Standard Edition Version 1.3.1,我的系统是2000server,没有dos)
- 关于“使用JAVA源代码制作电子书”的问题!!!!!!
- 如何动态的构造new object[] 数组中的元素?
/**
* A constant holding the minimum value an <code>int</code> can
* have, -2<sup>31</sup>.
*/
public static final int MIN_VALUE = 0x80000000; /**
* A constant holding the maximum value an <code>int</code> can
* have, 2<sup>31</sup>-1.
*/
public static final int MAX_VALUE = 0x7fffffff;...public final class Float extends Number implements Comparable<Float> {
/**
* A constant holding the largest positive finite value of type
* <code>float</code>, (2-2<sup>-23</sup>)·2<sup>127</sup>.
* It is equal to the hexadecimal floating-point literal
* <code>0x1.fffffeP+127f</code> and also equal to
* <code>Float.intBitsToFloat(0x7f7fffff)</code>.
*/
public static final float MAX_VALUE = 0x1.fffffeP+127f; // 3.4028235e+38f
/**
* A constant holding the smallest positive nonzero value of type
* <code>float</code>, 2<sup>-149</sup>. It is equal to the
* hexadecimal floating-point literal <code>0x0.000002P-126f</code>
* and also equal to <code>Float.intBitsToFloat(0x1)</code>.
*/
public static final float MIN_VALUE = 0x0.000002P-126f; // 1.4e-45f
public final class Double extends Number implements Comparable<Double> {
/**
* A constant holding the largest positive finite value of type
* <code>double</code>,
* (2-2<sup>-52</sup>)·2<sup>1023</sup>. It is equal to
* the hexadecimal floating-point li[code=Java]teral
* <code>0x1.fffffffffffffP+1023</code> and also equal to
* <code>Double.longBitsToDouble(0x7fefffffffffffffL)</code>.
*/
public static final double MAX_VALUE = 0x1.fffffffffffffP+1023; // 1.7976931348623157e+308
/**
* A constant holding the smallest positive nonzero value of type
* <code>double</code>, 2<sup>-1074</sup>. It is equal to the
* hexadecimal floating-point literal
* <code>0x0.0000000000001P-1022</code> and also equal to
* <code>Double.longBitsToDouble(0x1L)</code>.
*/
public static final double MIN_VALUE = 0x0.0000000000001P-1022; // 4.9e-324
[/code]