Tuesday 12 March 2013

java.lang Double


java.lang
Double

Declaration
public final class Double
java.lang.Object
|
+--java.lang.Double
Description
The Double class wraps a value of the primitive type double in an object. An object of type Double contains
a single field whose type is double.
In addition, this class provides several methods for converting a double to a String and a String to a
double, as well as other constants and methods useful when dealing with a double.


Fields
static double MAX_VALUE
static double MIN_VALUE
static double NaN
static double NEGATIVE_INFINITY
static double POSITIVE_INFINITY
Constructors
Double(double value)
Methods
byte byteValue()
static long doubleToLongBits(double value)
double doubleValue()
boolean equals(Object obj)
float floatValue()
int hashCode()
int intValue()
boolean isInfinite()
static boolean isInfinite(double v)
boolean isNaN()
static boolean isNaN(double v)
static double longBitsToDouble(long bits)
long longValue()
static double parseDouble(String s)
short shortValue()
String toString()
static String toString(double d)
static Double valueOf(String s)


Methods inherited from class Object
getClass(), notify(), notifyAll(), wait(), wait(), wait()


Fields
POSITIVE_INFINITY
Declaration:
public static final double POSITIVE_INFINITY
Description:
The positive infinity of type double. It is equal to the value returned by
Double.longBitsToDouble(0x7ff0000000000000L).
NEGATIVE_INFINITY
Declaration:
public static final double NEGATIVE_INFINITY
Description:
The negative infinity of type double. It is equal to the value returned by
Double.longBitsToDouble(0xfff0000000000000L).
NaN
Declaration:
public static final double NaN
Description:
A Not-a-Number (NaN) value of type double. It is equal to the value returned by
Double.longBitsToDouble(0x7ff8000000000000L).
MAX_VALUE
Declaration:
public static final double MAX_VALUE
Description:
The largest positive finite value of type double. It is equal to the value returned by
Double.longBitsToDouble(0x7fefffffffffffffL)
MIN_VALUE
Declaration:
public static final double MIN_VALUE



No comments:

Post a Comment