Searched refs:Double (Results 1 - 25 of 435) sorted by relevance

1234567891011>>

/openjdk7/langtools/test/tools/javac/boxing/
H A DNoBoxingDouble.java33 Double d = 0D;
/openjdk7/langtools/test/tools/javac/synthesize/
H A DDouble.java3 public class Double extends Number class in inherits:Number
5 public static Double valueOf(double v) {
6 return new Double(v);
9 public Double(double v) { method in class:Double
/openjdk7/jdk/test/java/beans/PropertyEditor/
H A DTestDoubleClassJava.java27 * @summary Tests PropertyEditor for value of type Double
33 new TestEditor(Double.class).testJava(Double.valueOf(12.34));
H A DTestDoubleTypeJava.java33 new TestEditor(Double.TYPE).testJava(Double.valueOf(12.34));
H A DTestDoubleClassNull.java27 * @summary Tests PropertyEditor for null value of type Double
33 new TestEditor(Double.class).testJava(null);
H A DTestDoubleClass.java27 * @summary Tests PropertyEditor for value of type Double with security manager
34 new TestEditor(Double.class);
H A DTestDoubleType.java34 new TestEditor(Double.TYPE);
H A DTestDoubleTypeNull.java33 new TestEditor(Double.TYPE).testJava(null);
/openjdk7/jdk/test/java/lang/Double/
H A DExtrema.java27 * @summary Testing values of Double.{MIN_VALUE, MIN_NORMAL, MAX_VALUE}
33 if (Double.MIN_VALUE != Double.longBitsToDouble(0x1L))
34 throw new RuntimeException("Double.MIN_VALUE is not equal "+
37 if (Double.MIN_NORMAL != Double.longBitsToDouble(0x0010000000000000L))
38 throw new RuntimeException("Double.MIN_NORMAL is not equal "+
41 if (Double.MAX_VALUE != Double.longBitsToDouble(0x7fefffffffffffffL))
42 throw new RuntimeException("Double
[all...]
H A DConstants.java28 * @summary Testing constant-ness of Double.{MIN_VALUE, MAX_VALUE}, etc.
35 * public static final fields in java.lang.Double are "constant
43 case (int)Double.NaN: // 0
44 System.out.println("Double.NaN is a constant!");
46 case (int)Double.MIN_VALUE + 1: // 0 + 1
47 System.out.println("Double.MIN_VALUE is a constant!");
49 case (int)Double.MIN_NORMAL + 2: // 0 + 2
50 System.out.println("Double.MIN_NORMAL is a constant!");
52 case Double.MIN_EXPONENT: // -1022
53 System.out.println("Double
[all...]
H A DToString.java27 * @summary Tests for Double.toString
34 if (!Double.toString(0.001).equals("0.001"))
35 throw new RuntimeException("Double.toString(0.001) is not \"0.001\"");
36 if (!Double.toString(0.002).equals("0.002"))
37 throw new RuntimeException("Double.toString(0.001) is not \"0.002\"");
H A DNaNInfinityParsing.java35 * 4428772 -- Establish invariant for Float & Double classes and
38 * Added capability for parse{Float, Double} and related methods
129 if(!Double.isNaN(d=Double.parseDouble(NaNStrings[i]))) {
138 if(!Double.isInfinite(d=Double.parseDouble(infinityStrings[i]))) {
147 if(d != (negative?Double.NEGATIVE_INFINITY:
148 Double.POSITIVE_INFINITY))
158 d = Double.parseDouble(invalidStrings[i]);
/openjdk7/langtools/test/tools/javac/diags/examples/
H A DCantResolveArgsParams.java28 { this.<Integer,Double>m2(1, ""); }
/openjdk7/jdk/test/java/lang/StrictMath/
H A DTests.java38 if (Double.compare(expected, result ) != 0) {
40 "\tFor input " + input + "\t(" + Double.toHexString(input) + ")\n" +
41 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" +
42 "\tgot " + result + "\t(" + Double.toHexString(result) + ").");
51 if (Double.compare(expected, result ) != 0) {
53 "\tFor input " + input1 + "\t(" + Double.toHexString(input1) + "), " +
54 + input2 + "\t(" + Double.toHexString(input2) + ")\n" +
55 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" +
56 "\tgot " + result + "\t(" + Double.toHexString(result) + ").");
/openjdk7/langtools/test/tools/javac/
H A DHexFloatLiterals.java39 check(-0X.003p12d, Double.parseDouble("-0X.003p12d"));
41 check(0x.006p11D, Double.parseDouble("0x.006p11D"));
42 check(0X.00cP10D, Double.parseDouble("0X.00cP10D"));
43 check(-0x.018P9, Double.parseDouble("-0x.018P9"));
44 check(0x.018P9D, Double.parseDouble("0x.018P9D"));
45 check(0X.018P9D, Double.parseDouble("0X.018P9D"));
47 check(0x.3p4d, Double.parseDouble("0x.3p4d"));
50 check(0x1.8p1d, Double.parseDouble("0x1.8p1d"));
51 check(0X1.8p1D, Double.parseDouble("0X1.8p1D"));
53 check(0X1.8P1, Double
[all...]
/openjdk7/langtools/test/tools/javac/6717241/
H A DT6717241b.java16 T6717241b.<Integer,Double>m2(1, "");
/openjdk7/hotspot/test/compiler/6340864/
H A DTestDoubleVect.java40 System.out.println("Testing Double vectors");
96 a1[0] = Double.NaN;
97 a1[1] = Double.POSITIVE_INFINITY;
98 a1[2] = Double.NEGATIVE_INFINITY;
99 a1[3] = Double.MAX_VALUE;
100 a1[4] = Double.MIN_VALUE;
101 a1[5] = Double.MIN_NORMAL;
118 errn += verify("test_addc: ", 0, a0[0], (Double.NaN+VALUE));
119 errn += verify("test_addc: ", 1, a0[1], (Double.POSITIVE_INFINITY+VALUE));
120 errn += verify("test_addc: ", 2, a0[2], (Double
[all...]
/openjdk7/jdk/src/share/classes/com/sun/beans/decoder/
H A DDoubleElementHandler.java30 * The class {@link Double} is used as wrapper for these values.
36 * &lt;method name="valueOf" class="java.lang.Double"&gt;
39 * which is equivalent to {@code Double.valueOf("1.23e45")} in Java code.
61 return Double.valueOf(argument);
/openjdk7/langtools/test/tools/javac/cast/6548436/
H A DT6548436d.java37 static void test(Base<? extends Double> je) {
/openjdk7/jdk/test/java/awt/geom/CubicCurve2D/
H A DContainsTest.java39 CubicCurve2D c = new CubicCurve2D.Double(0, 0, 4, -4, -2, -4, 2, 0);
40 Rectangle2D r = new Rectangle2D.Double(0.75, -2.5, 0.5, 2);
H A DIntersectsTest.java37 CubicCurve2D c = new CubicCurve2D.Double(50.0, 300.0,
41 Rectangle2D r = new Rectangle2D.Double(260, 300, 10, 10);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DDoubleConsts.java41 public static final double POSITIVE_INFINITY = java.lang.Double.POSITIVE_INFINITY;
42 public static final double NEGATIVE_INFINITY = java.lang.Double.NEGATIVE_INFINITY;
43 public static final double NaN = java.lang.Double.NaN;
44 public static final double MAX_VALUE = java.lang.Double.MAX_VALUE;
45 public static final double MIN_VALUE = java.lang.Double.MIN_VALUE;
51 * <code>Double.longBitsToDouble(0x0010000000000000L)</code>.
67 * <code>Math.ilogb(Double.MAX_VALUE)</code>.
74 * <code>Math.ilogb(Double.MIN_NORMAL)</code>.
82 * <code>FpUtils.ilogb(Double.MIN_VALUE)</code>.
/openjdk7/jdk/src/share/classes/java/lang/
H A DDouble.java33 * 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> { class in inherits:Number,Comparable
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
580 public Double(double value) { method in class:Double
595 public Double(String s) throws NumberFormatException { method in class:Double
[all...]
/openjdk7/jdk/test/java/lang/Math/
H A DAbsPositiveZero.java35 return Double.doubleToLongBits(d) == Double.doubleToLongBits(0.0d);
45 if (Math.abs(Double.POSITIVE_INFINITY) != Double.POSITIVE_INFINITY) {
48 if (Math.abs(Double.NEGATIVE_INFINITY) != Double.POSITIVE_INFINITY) {
51 double dnanval = Math.abs(Double.NaN);
H A DRint.java55 {Double.MIN_VALUE, 0.0},
98 {Double.MAX_VALUE, Double.MAX_VALUE},
99 {Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY},
100 {Double.NaN, Double.NaN}
110 for(double d = Double.MIN_VALUE;
111 d < Double.POSITIVE_INFINITY; d *= 2) {

Completed in 81 milliseconds

1234567891011>>