Home
last modified time | relevance | path

Searched refs:parseFloat (Results 1 – 11 of 11) 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/main/java/java/lang/
DFloat.java416 return new Float(parseFloat(s)); in valueOf()
450 public static float parseFloat(String s) throws NumberFormatException { in parseFloat() method in Float
451 return FloatingDecimal.parseFloat(s); in parseFloat()
532 value = parseFloat(s); in Float()
/libcore/benchmarks/src/benchmarks/regression/
DStringToRealBenchmark.java36 Float.parseFloat(string); in timeFloat_parseFloat()
/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/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/main/java/java/util/prefs/
DAbstractPreferences.java565 result = Float.parseFloat(value); in getFloat()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java182 return Float.parseFloat(floatString); in systemPropertyValue()
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java121 public static float parseFloat(String s) throws NumberFormatException { in parseFloat() method in FloatingDecimal