• Field Summary

    Fields

    static final int

    The number of bytes used to represent a double value.

    static final int

    Maximum exponent a finite double variable may have.

    static final double

    A constant holding the largest positive finite value of type double, (2-2-52)ยท21023.

    static final int

    Minimum exponent a normalized double variable may have.

    static final double

    A constant holding the smallest positive normal value of type double, 2-1022.

    static final double

    A constant holding the smallest positive nonzero value of type double, 2-1074.

    static final double

    A constant holding a Not-a-Number (NaN) value of type double.

    static final double

    A constant holding the negative infinity of type double.

    static final double

    A constant holding the positive infinity of type double.

    static final int

    The number of bits in the significand of a double value.

    static final int

    The number of bits used to represent a double value.

    The Class instance representing the primitive type double.

  • Constructor Summary

    Constructors

    Double(double value)

    Deprecated, for removal: This API element is subject to removal in a future version.

    Deprecated, for removal: This API element is subject to removal in a future version.

  • Method Summary

    byte

    byteValue()

    Returns the value of this Double as a byte after a narrowing primitive conversion.

    static int

    compare(double d1, double d2)

    Compares the two specified double values.

    int

    Compares two Double objects numerically.

    Returns an Optional containing the nominal descriptor for this instance, which is the instance itself.

    static long

    doubleToLongBits(double value)

    Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout.

    static long

    doubleToRawLongBits(double value)

    Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout, preserving Not-a-Number (NaN) values.

    double

    Returns the double value of this Double object.

    boolean

    Compares this object against the specified object.

    float

    Returns the value of this Double as a float after a narrowing primitive conversion.

    int

    hashCode()

    Returns a hash code for this Double object.

    static int

    hashCode(double value)

    Returns a hash code for a double value; compatible with Double.hashCode().

    int

    intValue()

    Returns the value of this Double as an int after a narrowing primitive conversion.

    static boolean

    isFinite(double d)

    Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

    boolean

    Returns true if this Double value is infinitely large in magnitude, false otherwise.

    static boolean

    isInfinite(double v)

    Returns true if the specified number is infinitely large in magnitude, false otherwise.

    boolean

    isNaN()

    Returns true if this Double value is a Not-a-Number (NaN), false otherwise.

    static boolean

    isNaN(double v)

    Returns true if the specified number is a Not-a-Number (NaN) value, false otherwise.

    static double

    longBitsToDouble(long bits)

    Returns the double value corresponding to a given bit representation.

    long

    longValue()

    Returns the value of this Double as a long after a narrowing primitive conversion.

    static double

    max(double a, double b)

    Returns the greater of two double values as if by calling Math.max.

    static double

    min(double a, double b)

    Returns the smaller of two double values as if by calling Math.min.

    static double

    Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

    Resolves this instance as a ConstantDesc, the result of which is the instance itself.

    short

    Returns the value of this Double as a short after a narrowing primitive conversion.

    static double

    sum(double a, double b)

    Adds two double values together as per the + operator.

    toHexString(double d)

    Returns a hexadecimal string representation of the double argument.

    toString()

    Returns a string representation of this Double object.

    toString(double d)

    Returns a string representation of the double argument.

    valueOf(double d)

    Returns a Double instance representing the specified double value.

    Returns a Double object holding the double value represented by the argument string s.

  • Field Details

    • POSITIVE_INFINITY

    • NEGATIVE_INFINITY

    • NaN

    • MAX_VALUE

    • MIN_NORMAL

    • MIN_VALUE

    • SIZE

    • PRECISION

    • MAX_EXPONENT

    • MIN_EXPONENT

    • BYTES

    • TYPE

  • Constructor Details

    • Double

    • Double

  • Method Details

    • toString

    • toHexString

    • valueOf

    • valueOf

    • parseDouble

    • isNaN

    • isInfinite

    • isFinite

    • isNaN

    • isInfinite

    • toString

    • byteValue

    • shortValue

    • intValue

    • longValue

    • floatValue

    • doubleValue

    • hashCode

    • hashCode

    • equals

    • doubleToLongBits

    • doubleToRawLongBits

    • longBitsToDouble

    • compareTo

    • compare

    • sum

    • max

    • min

    • describeConstable

    • resolveConstantDesc