Home
last modified time | relevance | path

Searched refs:floatValue (Results 1 – 25 of 47) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerConvertTest.java312 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 …]
DBigDecimalConvertTest.java102 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()
DBigDecimalTest.java329 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/
DSupport_GetPutFieldsDeprecated.java43 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()
DSupport_GetPutFields.java41 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()
DSupport_GetPutFieldsDefaulted.java52 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/
DOldDoubleTest.java52 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()
DOldFloatTest.java34 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY); in test_ConstructorD()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java424 … 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
DNumber.java75 public abstract float floatValue(); in floatValue() method in Number
DByte.java355 public float floatValue() { in floatValue() method in Byte
DShort.java360 public float floatValue() { in floatValue() method in Short
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatTestICU.java112 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/
DLongAccumulatorTest.java106 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
108 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
DDoubleAccumulatorTest.java106 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
108 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
DDoubleAdderTest.java118 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
120 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
DLongAdderTest.java141 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
143 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
DAtomicLongTest.java256 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
259 assertEquals((float)x, ai.floatValue()); in testFloatValue()
DAtomicIntegerTest.java253 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/
DByteTest.java321 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);
DFloatTest.java104 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()
DShortTest.java642 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/
DLongAdder.java172 public float floatValue() { in floatValue() method in LongAdder
DDoubleAdder.java179 public float floatValue() { in floatValue() method in DoubleAdder
DAtomicInteger.java296 public float floatValue() { in floatValue() method in AtomicInteger

12