View Single Post
Old 17-07-2008, 18:21   #9
banryu79
Senior Member
 
L'Avatar di banryu79
 
Iscritto dal: Oct 2007
Città: Padova
Messaggi: 4131
Non so se serve: nella classe Double sono definite altre costanti primitive double tipo:

Codice:
POSITIVE_INFINITY
public static final double POSITIVE_INFINITY

    A constant holding the positive infinity of type double. It is equal to the value returned by Double.longBitsToDouble(0x7ff0000000000000L).


NEGATIVE_INFINITY
public static final double NEGATIVE_INFINITY

    A constant holding the negative infinity of type double. It is equal to the value returned by Double.longBitsToDouble(0xfff0000000000000L).


MAX_VALUE
public static final double MAX_VALUE

    A constant holding the largest positive finite value of type double, (2-2-52)·21023. It is equal to the hexadecimal floating-point literal 0x1.fffffffffffffP+1023 and also equal to Double.longBitsToDouble(0x7fefffffffffffffL).


MIN_NORMAL
public static final double MIN_NORMAL

    A constant holding the smallest positive normal value of type double, 2-1022. It is equal to the hexadecimal floating-point literal 0x1.0p-1022 and also equal to Double.longBitsToDouble(0x0010000000000000L).

    Since:
        1.6


MIN_VALUE
public static final double MIN_VALUE

    A constant holding the smallest positive nonzero value of type double, 2-1074. It is equal to the hexadecimal floating-point literal 0x0.0000000000001P-1022 and also equal to Double.longBitsToDouble(0x1L).


MAX_EXPONENT
public static final int MAX_EXPONENT

    Maximum exponent a finite double variable may have. It is equal to the value returned by Math.getExponent(Double.MAX_VALUE).

    Since:
        1.6


MIN_EXPONENT
public static final int MIN_EXPONENT

    Minimum exponent a normalized double variable may have. It is equal to the value returned by Math.getExponent(Double.MIN_NORMAL).

    Since:
        1.6
__________________

As long as you are basically literate in programming, you should be able to express any logical relationship you understand.
If you don’t understand a logical relationship, you can use the attempt to program it as a means to learn about it.
(Chris Crawford)
banryu79 è offline   Rispondi citando il messaggio o parte di esso