Home
last modified time | relevance | path

Searched refs:parseDouble (Results 1 – 25 of 29) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
DDoubleTest.java34 assertEquals(Double.NaN, Double.parseDouble("NaN")); in testNamedDoubles()
35 assertEquals(Double.NaN, Double.parseDouble("-NaN")); in testNamedDoubles()
36 assertEquals(Double.NaN, Double.parseDouble("+NaN")); in testNamedDoubles()
38 Double.parseDouble("NNaN"); in testNamedDoubles()
43 Double.parseDouble("NaNN"); in testNamedDoubles()
48 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("+Infinity")); in testNamedDoubles()
49 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("Infinity")); in testNamedDoubles()
50 assertEquals(Double.NEGATIVE_INFINITY, Double.parseDouble("-Infinity")); in testNamedDoubles()
52 Double.parseDouble("IInfinity"); in testNamedDoubles()
57 Double.parseDouble("Infinityy"); in testNamedDoubles()
[all …]
DOldDoubleTest.java73 double actual = Double.parseDouble("9e551027"); in test_parseDouble_LString_AndroidRegression()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DDoubleTest.java190 result = Double.parseDouble(originalDoubleString); in doTestCompareRawBits()
231 …d = Double.parseDouble("-1.23399999999999996511673809963093681727585202138420992908181304283780288… in test_ConstructorLjava_lang_String()
430 .parseDouble("2.4703282292062327208828439643411e-324"), 0.0); in test_parseDoubleLjava_lang_String()
432 .parseDouble("2.4703282292062327208828439643412e-324") == Double.MIN_VALUE); in test_parseDoubleLjava_lang_String()
435 Double.parseDouble("3.4e-" + i); in test_parseDoubleLjava_lang_String()
438 Double.parseDouble("1.2e" + i); in test_parseDoubleLjava_lang_String()
589 Double.parseDouble("0.0p0D"); in test_parseDouble_LString_Illegal()
596 Double.parseDouble("+0x.p1d"); in test_parseDouble_LString_Illegal()
603 Double.parseDouble("0Xg.gp1D"); in test_parseDouble_LString_Illegal()
610 Double.parseDouble("-0x1.1p"); in test_parseDouble_LString_Illegal()
[all …]
/libcore/ojluni/src/test/java/lang/Double/
DParseDouble.java46 double n = Double.parseDouble(val); in check()
124 double n = Double.parseDouble(val); in check()
564 Double.parseDouble(s); in testParsing()
682 double convertedLowerBound = Double.parseDouble(lowerBound.toString()); in testSubnormalPowers()
683 double convertedUpperBound = Double.parseDouble(upperBound.toString()); in testSubnormalPowers()
700 if (Double.parseDouble(minValue.multiply(new BigDecimal(0.5)).toString()) != 0.0) { in testSubnormalPowers()
704 …if (Double.parseDouble(minValue.multiply(new BigDecimal(0.50000000001)).toString()) != Double.MIN_… in testSubnormalPowers()
708 …if (Double.parseDouble(minValue.multiply(new BigDecimal(1.49999999999)).toString()) != Double.MIN_… in testSubnormalPowers()
712 … if (Double.parseDouble(minValue.multiply(new BigDecimal(1.5)).toString()) != 2*Double.MIN_VALUE) { in testSubnormalPowers()
750 conversion = Double.parseDouble(decimal); in testStrictness()
DNaNInfinityParsing.java131 if(!Double.isNaN(d=Double.parseDouble(NaNStrings[i]))) { in main()
140 if(!Double.isInfinite(d=Double.parseDouble(infinityStrings[i]))) { in main()
160 d = Double.parseDouble(invalidStrings[i]); in main()
DToHexString.java134 if(! (result=Double.toHexString(Double.parseDouble(testCases1[i][0]))). in toHexStringTests()
224 if(! (result=Double.toHexString(Double.parseDouble(testCases2[i][0]))). in toHexStringTests()
DParseHexFloatingPoint.java93 double result = Double.parseDouble(s5); in testCase()
429 … System.err.println("Double = " + Double.toHexString(Double.parseDouble(resultIn))); in floatTests()
/libcore/luni/src/test/java/libcore/java/math/
DCSVTest.java67 double expectedOutput = Double.parseDouble(testCase[1]); in runTest()
68 double input = Double.parseDouble(testCase[2]); in runTest()
71 double input2 = Double.parseDouble(testCase[3]); in runTest()
/libcore/ojluni/src/main/java/java/lang/
DDouble.java625 return new Double(parseDouble(s)); in valueOf()
661 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in Double
662 return FloatingDecimal.parseDouble(s); in parseDouble()
746 value = parseDouble(s); in Double()
/libcore/json/src/main/java/org/json/
DJSON.java65 return (int) Double.parseDouble((String) value); in toInteger()
79 return (long) Double.parseDouble((String) value); in toLong()
/libcore/benchmarks/src/benchmarks/regression/
DStringToRealBenchmark.java42 Double.parseDouble(string); in timeDouble_parseDouble()
/libcore/ojluni/src/test/jdk/internal/math/
DToString.java55 double d = Double.parseDouble(exp); in test()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimitiveConversionTests.java74 double expected = Double.parseDouble(big.toString()); in testDoubleValue()
/libcore/ojluni/annotations/flagged_api/java/lang/
DDouble.annotated.java46 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { throw… in parseDouble() method in Double
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java45 public static double parseDouble(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberF… in parseDouble() method in Double
/libcore/benchmarks/src/benchmarks/
DXmlSerializeBenchmark.java91 dataset[i] = Double.parseDouble(splitted[i]); in setUp()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java60 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble() method in Double
/libcore/ojluni/src/test/jdk/internal/math/FloatingDecimal/
DTestFloatingDecimal.java160 double newDouble = FloatingDecimal.parseDouble(javaFormatString); in testParseDouble()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFloatingDecimal.java53 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble() method in FloatingDecimal
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDoubleBufferTest.java212 double negativeZero = Double.parseDouble("-0");
213 double positiveZero = Double.parseDouble("+0");
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java216 startValue = Double.parseDouble(tempBuffer); in applyPattern()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java620 result = Double.parseDouble(value); in getDouble()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java509 resDouble = Double.parseDouble(result.getString(name)); in func()
/libcore/ojluni/src/main/java/java/util/
DScanner.java2541 typeCache = Double.valueOf(Double.parseDouble(s)); in hasNextDouble()
2587 return Double.parseDouble(processFloatToken(next(floatPattern()))); in nextDouble()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java508 w = Double.parseDouble(range.substring(index)); in parse()

12