Home
last modified time | relevance | path

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

123

/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_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_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_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/
DNumber.java81 public abstract float floatValue(); in floatValue() method in Number
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatTestICU.java104 assertEquals(0.01f, format.parse("1E-2").floatValue()); in test_positiveExponentSign()
112 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/ojluni/annotations/hiddenapi/sun/misc/
DFloatingDecimal.java229 public float floatValue() { in floatValue() method in FloatingDecimal.ASCIIToBinaryBuffer
283 public float floatValue(); in floatValue() method
490 public float floatValue() { in floatValue() method in FloatingDecimal.PreparedASCIIToBinaryBuffer
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java2190 float floatValue = 33333.141f; in testExplicitCastArguments() local
2191 mh.invokeExact(floatValue, true, (byte) floatValue, (char) floatValue, (short) floatValue, in testExplicitCastArguments()
2192 (int) floatValue, (long) floatValue, floatValue, (double) floatValue, in testExplicitCastArguments()
2193 Float.valueOf(floatValue)); in testExplicitCastArguments()
2195 mh.invoke(floatValue, true, (byte) floatValue, (char) floatValue, in testExplicitCastArguments()
2196 (short) floatValue, (int) floatValue, (long) floatValue, floatValue, in testExplicitCastArguments()
2197 (double) floatValue, Integer.valueOf((int) floatValue)); in testExplicitCastArguments()
DMethodHandleAccessorsTest.java505 float floatValue = value instanceof Float ? ((Float)value).floatValue() : -1.0f; in tryAccessor() local
506 setFloat(methodHandle, valueHolder, floatValue, in tryAccessor()
508 setFloat(methodHandle, floatValue, in tryAccessor()
510 getFloat(methodHandle, valueHolder, floatValue, in tryAccessor()
512 getFloat(methodHandle, floatValue, in tryAccessor()
821 assertTrue(valueHolder.m_f == floatNumber.floatValue()); in testMemberSetter()
824 assertTrue(valueHolder.m_f == ((Float) objNumber).floatValue()); in testMemberSetter()
876 assertTrue(ValueHolder.s_f == floatNumber.floatValue()); in testStaticSetter()
/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/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/
DAtomicInteger.java129 public float floatValue() { in floatValue() method in AtomicInteger
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DLongAdder.java201 public float floatValue() { in floatValue() method in LongAdder
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java107 public float floatValue() { in floatValue() method in Float

123