Double

public final class Double extends Number
implements Comparable<Double>

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.

Constant Summary

int BYTES The number of bytes used to represent a double value.
int MAX_EXPONENT Maximum exponent a finite double variable may have.
double MAX_VALUE A constant holding the largest positive finite value of type double, (2-2-52)·21023.
int MIN_EXPONENT Minimum exponent a normalized double variable may have.
double MIN_NORMAL A constant holding the smallest positive normal value of type double, 2-1022.
double MIN_VALUE A constant holding the smallest positive nonzero value of type double, 2-1074.
double NEGATIVE_INFINITY A constant holding the negative infinity of type double.
double NaN A constant holding a Not-a-Number (NaN) value of type double.
double POSITIVE_INFINITY A constant holding the positive infinity of type double.
int SIZE The number of bits used to represent a double value.

Field Summary

public static final Class<Double> TYPE The Class instance representing the primitive type double.

Public Constructor Summary

Double(double value)
Constructs a newly allocated Double object that represents the primitive double argument.
Double(String s)
Constructs a newly allocated Double object that represents the floating-point value of type double represented by the string.

Public Method Summary