Home
last modified time | relevance | path

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

/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/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.java502 return new Double(parseDouble(s)); in valueOf()
537 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in Double
538 return FloatingDecimal.parseDouble(s); in parseDouble()
608 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/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/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/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.java212 startValue = Double.parseDouble(segments[0].toString()); in applyPattern()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java268 w = Double.parseDouble(range.substring(index)); in parse()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java620 result = Double.parseDouble(value); in getDouble()
/libcore/ojluni/src/main/java/java/util/
DScanner.java2394 typeCache = Double.valueOf(Double.parseDouble(s)); in hasNextDouble()
2440 return Double.parseDouble(processFloatToken(next(floatPattern()))); in nextDouble()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java509 resDouble = Double.parseDouble(result.getString(name)); in func()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java1648 d, Double.parseDouble(Double.toString(d))); in assertDecimalFormatIsLossless()
1657 double doubleParsed = Double.parseDouble(result); in assertDecimalFormatIsLossless()
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java109 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in FloatingDecimal