Lines Matching defs:Double
33 * The {@code Double} class wraps a value of the primitive type
35 * {@code Double} contains a single field whose type is
49 public final class Double extends Number implements Comparable<Double> {
53 * {@code Double.longBitsToDouble(0x7ff0000000000000L)}.
60 * {@code Double.longBitsToDouble(0xfff0000000000000L)}.
67 * {@code Double.longBitsToDouble(0x7ff8000000000000L)}.
77 * {@code Double.longBitsToDouble(0x7fefffffffffffffL)}.
85 * equal to {@code Double.longBitsToDouble(0x0010000000000000L)}.
96 * {@code Double.longBitsToDouble(0x1L)}.
103 * {@code Math.getExponent(Double.MAX_VALUE)}.
112 * {@code Math.getExponent(Double.MIN_NORMAL)}.
131 public static final Class<Double> TYPE = (Class<Double>) Class.getPrimitiveClass("double");
259 * <tr><td>{@code Double.MAX_VALUE}</td>
265 * <tr><td>{@code Double.MIN_VALUE}</td>
281 return Double.toString(d);
302 long signifBits = (Double.doubleToLongBits(d)
332 * Returns a {@code Double} object holding the
419 * Finally, after rounding a {@code Double} object representing
490 * Double.valueOf(myString); // Will not throw NumberFormatException
498 * @return a {@code Double} object holding the value
503 public static Double valueOf(String s) throws NumberFormatException {
504 return new Double(FloatingDecimal.readJavaFormatString(s).doubleValue());
508 * Returns a {@code Double} instance representing the specified
510 * If a new {@code Double} instance is not required, this method
512 * {@link #Double(double)}, as this method is likely to yield
517 * @return a {@code Double} instance representing {@code d}.
520 public static Double valueOf(double d) {
521 return new Double(d);
528 * {@code Double}.
536 * @see java.lang.Double#valueOf(String)
568 * The value of the Double.
575 * Constructs a newly allocated {@code Double} object that
578 * @param value the value to be represented by the {@code Double}.
580 public Double(double value) {
585 * Constructs a newly allocated {@code Double} object that
590 * @param s a string to be converted to a {@code Double}.
593 * @see java.lang.Double#valueOf(java.lang.String)
595 public Double(String s) throws NumberFormatException {
601 * Returns {@code true} if this {@code Double} value is
612 * Returns {@code true} if this {@code Double} value is
624 * Returns a string representation of this {@code Double} object.
630 * @see java.lang.Double#toString(double)
637 * Returns the value of this {@code Double} as a {@code byte} (by
649 * Returns the value of this {@code Double} as a
661 * Returns the value of this {@code Double} as an
672 * Returns the value of this {@code Double} as a
684 * {@code Double} object.
696 * {@code Double} object.
705 * Returns a hash code for this {@code Double} object. The
710 * {@code Double} object. That is, the hash code is the value
720 * {@code long v = Double.doubleToLongBits(this.doubleValue());}
733 * {@code null} and is a {@code Double} object that
742 * {@code Double}, {@code d1} and {@code d2}, the
754 * {@code Double.NaN}, then the {@code equals} method
756 * {@code Double.NaN==Double.NaN} has the value
767 * @see java.lang.Double#doubleToLongBits(double)
770 return (obj instanceof Double)
771 && (doubleToLongBits(((Double)obj).value) ==
877 * use of the {@code Double.doubleToRawLongBits} method.
920 * Compares two {@code Double} objects numerically. There
926 * {@code Double.NaN} is considered by this method
929 * {@code Double.POSITIVE_INFINITY}).
935 * {@code Double} objects imposed by this method is <i>consistent
938 * @param anotherDouble the {@code Double} to be compared.
940 * numerically equal to this {@code Double}; a value
941 * less than {@code 0} if this {@code Double}
944 * {@code Double} is numerically greater than
949 public int compareTo(Double anotherDouble) {
950 return Double.compare(value, anotherDouble.value);
958 * new Double(d1).compareTo(new Double(d2))
978 long thisBits = Double.doubleToLongBits(d1);
979 long anotherBits = Double.doubleToLongBits(d2);