Home
last modified time | relevance | path

Searched refs:parseDouble (Results 1 – 25 of 27) 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/
DParseDoubleTest.java48 double n = Double.parseDouble(val); in check()
126 double n = Double.parseDouble(val); in check()
568 d = Double.parseDouble(input[i]); in testParsing()
681 double convertedLowerBound = Double.parseDouble(lowerBound.toString()); in testSubnormalPowers()
682 double convertedUpperBound = Double.parseDouble(upperBound.toString()); in testSubnormalPowers()
695 … Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(0.5)).toString()), 0.0, in testSubnormalPowers()
697 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(0.50000000001)).toString()… in testSubnormalPowers()
699 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(1.49999999999)).toString()… in testSubnormalPowers()
701 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(1.5)).toString()), 2*Doubl… in testSubnormalPowers()
735 conversion = Double.parseDouble(decimal); in testStrictness()
DNaNInfinityParsingTest.java129 double d = Double.parseDouble(naNString); in testValidNaNStrings()
139 double d = Double.parseDouble(infinityString); in testValidInfinityStrings()
158 double d = Double.parseDouble(invalidString); in testAlmostValidStrings()
DToHexStringTest.java134 String result = Double.toHexString(Double.parseDouble(testCases1[i][0])); in testToHexString()
217 String result = Double.toHexString(Double.parseDouble(testCases2[i][0])); in testToHexString()
DParseHexFloatingPointTest.java86 double result = Double.parseDouble(s5); in testCase()
410 "Double = " + Double.toHexString(Double.parseDouble(resultIn)) + in testFloat()
/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/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/annotations/hiddenapi/sun/misc/
DFloatingDecimal.java53 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble() method in FloatingDecimal
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java216 startValue = Double.parseDouble(tempBuffer); in applyPattern()
/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/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()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java1673 d, Double.parseDouble(Double.toString(d))); in assertDecimalFormatIsLossless()
1682 double doubleParsed = Double.parseDouble(result); in assertDecimalFormatIsLossless()
/libcore/ojluni/src/main/java/jdk/internal/math/
DFloatingDecimal.java109 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in FloatingDecimal

12