/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConvertTest.java | 312 float aNumber = new BigInteger(a).floatValue(); in testFloatValueZero() 323 float aNumber = new BigInteger(a).floatValue(); in testFloatValuePositive1() 334 float aNumber = new BigInteger(a).floatValue(); in testFloatValuePositive2() 345 float aNumber = new BigInteger(a).floatValue(); in testFloatValueNegative1() 356 float aNumber = new BigInteger(a).floatValue(); in testFloatValueNegative2() 369 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosRounded1() 383 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosRounded2() 394 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosNotRounded() 406 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValueNegRounded1() 420 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValueNegRounded2() [all …]
|
D | BigDecimalConvertTest.java | 102 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValueNeg() 112 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValuePos() 122 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValuePosInfinity() 132 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValueNegInfinity() 142 float result = aNumber.floatValue(); in testFloatValueMinusZero() 153 float result = aNumber.floatValue(); in testFloatValuePlusZero()
|
D | BigDecimalTest.java | 329 fl1.floatValue() == 234563782344567f); in test_floatValue() 332 .floatValue() == 2.345E37F); in test_floatValue() 335 .floatValue() == -1.00E-44F); in test_floatValue() 338 .floatValue() == -3E12F); in test_floatValue() 342 fl2.floatValue() == Float.POSITIVE_INFINITY); in test_floatValue() 346 fl2.floatValue() == Float.NEGATIVE_INFINITY); in test_floatValue()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDeprecated.java | 43 public float floatValue = 0.0f; field in Support_GetPutFieldsDeprecated 83 floatValue = 43.22f; in initTestValues() 100 floatValue == other.floatValue && in equals() 113 floatValue = getField.get("floatValue", 0.0f); in readObject() 127 putField.put("floatValue", floatValue); in writeObject()
|
D | Support_GetPutFields.java | 41 public float floatValue = 0.0f; field in Support_GetPutFields 81 floatValue = 24.12f; in initTestValues() 98 floatValue == other.floatValue && in equals() 112 floatValue = getField.get("floatValue", 0.0f); in readObject() 126 putField.put("floatValue", floatValue); in writeObject()
|
D | Support_GetPutFieldsDefaulted.java | 52 public float floatValue = 0.0f; field in Support_GetPutFieldsDefaulted 92 floatValue = 298.54f; in initTestValues() 109 floatValue == other.floatValue && in equals() 123 floatValue = getField.get("floatValue", 298.54f); in readObject()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldDoubleTest.java | 52 assertEquals(Float.POSITIVE_INFINITY, new Double("3.4028236E38").floatValue()); in test_floatValue() 53 assertEquals(Float.NEGATIVE_INFINITY, new Double("-3.4028236E38").floatValue()); in test_floatValue() 54 assertEquals(Float.MAX_VALUE, new Double("3.4028235E38").floatValue()); in test_floatValue() 55 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue()); in test_floatValue()
|
D | OldFloatTest.java | 34 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY); in test_ConstructorD()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Float.java | 424 … return new Float(FloatingDecimal.getThreadLocalInstance().readJavaFormatString(s).floatValue()); in valueOf() 459 return FloatingDecimal.getThreadLocalInstance().readJavaFormatString(s).floatValue(); in parseFloat() 540 this(valueOf(s).floatValue()); in Float() 629 public float floatValue() { in floatValue() method in Float
|
D | Number.java | 75 public abstract float floatValue(); in floatValue() method in Number
|
D | Byte.java | 355 public float floatValue() { in floatValue() method in Byte
|
D | Short.java | 360 public float floatValue() { in floatValue() method in Short
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDecimalFormatTestICU.java | 112 assertEquals(0.01f, format.parse("1E-2").floatValue()); in test_positiveExponentSign() 120 assertEquals(0.00123f, format.parse("12.3E-4").floatValue()); in test_positiveExponentSign()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | LongAccumulatorTest.java | 106 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 108 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
|
D | DoubleAccumulatorTest.java | 106 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 108 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
|
D | DoubleAdderTest.java | 118 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 120 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
|
D | LongAdderTest.java | 141 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 143 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
|
D | AtomicLongTest.java | 256 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 259 assertEquals((float)x, ai.floatValue()); in testFloatValue()
|
D | AtomicIntegerTest.java | 253 assertEquals(0.0f, ai.floatValue()); in testFloatValue() 256 assertEquals((float)x, ai.floatValue()); in testFloatValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ByteTest.java | 321 assertEquals(-1F, new Byte((byte) -1).floatValue(), 0F); in test_floatValue() 322 assertEquals(0F, new Byte((byte) 0).floatValue(), 0F); in test_floatValue() 323 assertEquals(1F, new Byte((byte) 1).floatValue(), 0F); in test_floatValue() 506 assertEquals(127F, new Byte((byte) 127).floatValue(), 0.0);
|
D | FloatTest.java | 104 assertTrue("Created incorrect float", f.floatValue() == 900.89f); in test_ConstructorF() 114 assertTrue("Created incorrect Float", f.floatValue() == 900.89f); in test_ConstructorLjava_lang_String() 196 assertTrue("Returned incorrect floatValue", f.floatValue() == 87.657f in test_floatValue() 197 && (f2.floatValue() == -0.876f)); in test_floatValue() 942 + Float.toString(f.floatValue()) + ")", Float.toString(f.floatValue()).equals( in test_toString()
|
D | ShortTest.java | 642 assertEquals(-1F, new Short((short) -1).floatValue(), 0F); in test_floatValue() 643 assertEquals(0F, new Short((short) 0).floatValue(), 0F); in test_floatValue() 644 assertEquals(1F, new Short((short) 1).floatValue(), 0F); in test_floatValue()
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | LongAdder.java | 172 public float floatValue() { in floatValue() method in LongAdder
|
D | DoubleAdder.java | 179 public float floatValue() { in floatValue() method in DoubleAdder
|
D | AtomicInteger.java | 296 public float floatValue() { in floatValue() method in AtomicInteger
|