Home
last modified time | relevance | path

Searched refs:parseFloat (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DFloatTest.java36 assertEquals(Float.NaN, Float.parseFloat("NaN")); in testNamedFloats()
37 assertEquals(Float.NaN, Float.parseFloat("-NaN")); in testNamedFloats()
38 assertEquals(Float.NaN, Float.parseFloat("+NaN")); in testNamedFloats()
40 Float.parseFloat("NNaN"); in testNamedFloats()
45 Float.parseFloat("NaNN"); in testNamedFloats()
50 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("+Infinity")); in testNamedFloats()
51 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("Infinity")); in testNamedFloats()
52 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-Infinity")); in testNamedFloats()
54 Float.parseFloat("IInfinity"); in testNamedFloats()
59 Float.parseFloat("Infinityy"); in testNamedFloats()
[all …]
DOldFloatTest.java42 Float.parseFloat(incorrectStrings[i]); in test_parseFloatLExceptions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java90 float result = Float.parseFloat(originalFloatString); in doTestCompareRawBits()
308 .parseFloat("7.0064923216240853546186479164495e-46"), 0.0); in test_parseFloatLjava_lang_String()
310 Float.parseFloat("7.0064923216240853546186479164496e-46"), 0.0); in test_parseFloatLjava_lang_String()
429 …actual = Float.parseFloat("0x00000000000000000000000000000000000000000.000000000000000000000000000… in test_parseFloat_LString_Unusual()
432 actual = Float.parseFloat("+0Xfffff.fffffffffffffffffffffffffffffffp+99F"); in test_parseFloat_LString_Unusual()
435 actual = Float.parseFloat("-0X.123456789abcdefp+99f"); in test_parseFloat_LString_Unusual()
438 actual = Float.parseFloat("-0X123456789abcdef.p+1f"); in test_parseFloat_LString_Unusual()
441 …actual = Float.parseFloat("-0X000000000000000000000000000001abcdef.0000000000000000000000000001abe… in test_parseFloat_LString_Unusual()
444 …actual = Float.parseFloat("0X0.0000000000000000000000000000000000000000000000000000000000000000000… in test_parseFloat_LString_Unusual()
447 actual = Float.parseFloat("0x1.p9223372036854775807"); in test_parseFloat_LString_Unusual()
[all …]
/libcore/ojluni/src/test/java/lang/Float/
DNaNInfinityParsingTest.java134 float d = Float.parseFloat(naNString); in testValidNaNStrings()
144 float d = Float.parseFloat(infinityString); in testValidInfinityStrings()
163 float d = Float.parseFloat(invalidString); in testAlmostValidStrings()
DParseFloatTest.java46 float n = Float.parseFloat(val); in check()
124 float n = Float.parseFloat(val); in check()
287 d = Float.parseFloat(input[i]); in testParsing()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java451 return new Float(parseFloat(s)); in valueOf()
486 public static float parseFloat(String s) throws NumberFormatException { in parseFloat() method in Float
487 return FloatingDecimal.parseFloat(s); in parseFloat()
589 value = parseFloat(s); in Float()
/libcore/benchmarks/src/benchmarks/regression/
DStringToRealBenchmark.java36 Float.parseFloat(string); in timeFloat_parseFloat()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimitiveConversionTests.java86 float expected = Float.parseFloat(big.toString()); in testFloatValue()
/libcore/ojluni/src/test/java/lang/Double/
DParseHexFloatingPointTest.java404 float expected = Float.parseFloat(expectedIn); in testFloat()
405 float result = Float.parseFloat(resultIn); in testFloat()
DToHexStringTest.java164 String result = Float.toHexString(Float.parseFloat(floatTestCases[i][0])); in testToHexString()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java63 public static float parseFloat(java.lang.String s) throws java.lang.NumberFormatException { in parseFloat() method in Float
/libcore/ojluni/annotations/flagged_api/java/lang/
DFloat.annotated.java49 public static float parseFloat(java.lang.String s) throws java.lang.NumberFormatException { throw n… in parseFloat() method in Float
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DFloat.annotated.java47 public static float parseFloat(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFor… in parseFloat() method in Float
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFloatingDecimal.java57 public static float parseFloat(java.lang.String s) throws java.lang.NumberFormatException { in parseFloat() method in FloatingDecimal
/libcore/ojluni/src/test/java/util/Scanner/
DScanTest.java287 if (f != Float.parseFloat("3.7")) in nonASCIITest()
291 if (f != Float.parseFloat("3.7")) in nonASCIITest()
295 if (f != Float.parseFloat("3.7")) in nonASCIITest()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java565 result = Float.parseFloat(value); in getFloat()
/libcore/ojluni/src/main/java/java/util/
DScanner.java2474 typeCache = Float.valueOf(Float.parseFloat(s)); in hasNextFloat()
2519 return Float.parseFloat(processFloatToken(next(floatPattern()))); in nextFloat()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java182 return Float.parseFloat(floatString); in systemPropertyValue()
/libcore/ojluni/src/main/java/jdk/internal/math/
DFloatingDecimal.java121 public static float parseFloat(String s) throws NumberFormatException { in parseFloat() method in FloatingDecimal
/libcore/ojluni/src/test/java/util/concurrent/tck/
DJSR166TestCase.java252 return Float.parseFloat(floatString); in systemPropertyValue()
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java3793 return Float.parseFloat(this.toString());
/libcore/api/
Dcurrent.txt3340 method public static float parseFloat(@NonNull String) throws java.lang.NumberFormatException;