Searched refs:floatValue (Results 1 - 25 of 49) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/
H A DNumber.java81 public abstract float floatValue(); method in class:Number
H A DByte.java359 public float floatValue() { method in class:Byte
H A DShort.java365 public float floatValue() { method in class:Short
/libcore/support/src/test/java/tests/support/
H A DSupport_GetPutFields.java41 public float floatValue = 0.0f; field in class:Support_GetPutFields
81 floatValue = 24.12f;
98 floatValue == other.floatValue &&
112 floatValue = getField.get("floatValue", 0.0f);
126 putField.put("floatValue", floatValue);
H A DSupport_GetPutFieldsDeprecated.java43 public float floatValue = 0.0f; field in class:Support_GetPutFieldsDeprecated
83 floatValue = 43.22f;
100 floatValue == other.floatValue &&
113 floatValue = getField.get("floatValue", 0.0f);
127 putField.put("floatValue", floatValue);
H A DSupport_GetPutFieldsDefaulted.java52 public float floatValue = 0.0f; field in class:Support_GetPutFieldsDefaulted
92 floatValue = 298.54f;
109 floatValue == other.floatValue &&
123 floatValue = getField.get("floatValue", 298.54f);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldDoubleTest.java52 assertEquals(Float.POSITIVE_INFINITY, new Double("3.4028236E38").floatValue());
53 assertEquals(Float.NEGATIVE_INFINITY, new Double("-3.4028236E38").floatValue());
54 assertEquals(Float.MAX_VALUE, new Double("3.4028235E38").floatValue());
55 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue());
H A DOldFloatTest.java34 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerConvertTest.java29 * floatValue(), doubleValue()
312 float aNumber = new BigInteger(a).floatValue();
323 float aNumber = new BigInteger(a).floatValue();
334 float aNumber = new BigInteger(a).floatValue();
345 float aNumber = new BigInteger(a).floatValue();
356 float aNumber = new BigInteger(a).floatValue();
369 float aNumber = new BigInteger(aSign, a).floatValue();
383 float aNumber = new BigInteger(aSign, a).floatValue();
394 float aNumber = new BigInteger(aSign, a).floatValue();
406 float aNumber = new BigInteger(aSign, a).floatValue();
[all...]
H A DBigDecimalConvertTest.java29 * Methods: doubleValue, floatValue, intValue, longValue,
102 assertTrue("incorrect value", aNumber.floatValue() == result);
112 assertTrue("incorrect value", aNumber.floatValue() == result);
122 assertTrue("incorrect value", aNumber.floatValue() == result);
132 assertTrue("incorrect value", aNumber.floatValue() == result);
142 float result = aNumber.floatValue();
153 float result = aNumber.floatValue();
/libcore/luni/src/test/java/libcore/java/text/
H A DOldDecimalFormatTestICU.java112 assertEquals(0.01f, format.parse("1E-2").floatValue());
120 assertEquals(0.00123f, format.parse("12.3E-4").floatValue());
/libcore/jsr166-tests/src/test/java/jsr166/
H A DDoubleAccumulatorTest.java102 * floatValue returns current value.
106 assertEquals(0.0f, ai.floatValue());
108 assertEquals(1.0f, ai.floatValue());
H A DDoubleAdderTest.java114 * floatValue returns current value.
118 assertEquals(0.0f, ai.floatValue());
120 assertEquals(1.0f, ai.floatValue());
H A DLongAccumulatorTest.java102 * floatValue returns current value.
106 assertEquals(0.0f, ai.floatValue());
108 assertEquals(1.0f, ai.floatValue());
H A DLongAdderTest.java137 * floatValue returns current value.
141 assertEquals(0.0f, ai.floatValue());
143 assertEquals(1.0f, ai.floatValue());
H A DAtomicIntegerTest.java249 * floatValue returns current value.
253 assertEquals(0.0f, ai.floatValue());
256 assertEquals((float)x, ai.floatValue());
H A DAtomicLongTest.java252 * floatValue returns current value.
256 assertEquals(0.0f, ai.floatValue());
259 assertEquals((float)x, ai.floatValue());
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DLongAdder.java201 public float floatValue() { method in class:LongAdder
H A DAtomicInteger.java325 public float floatValue() { method in class:AtomicInteger
H A DAtomicLong.java341 public float floatValue() { method in class:AtomicLong
H A DDoubleAccumulator.java222 public float floatValue() { method in class:DoubleAccumulator
H A DDoubleAdder.java208 public float floatValue() { method in class:DoubleAdder
H A DLongAccumulator.java211 public float floatValue() { method in class:LongAccumulator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DByteTest.java318 * java.lang.Byte#floatValue()
321 assertEquals(-1F, new Byte((byte) -1).floatValue(), 0F);
322 assertEquals(0F, new Byte((byte) 0).floatValue(), 0F);
323 assertEquals(1F, new Byte((byte) 1).floatValue(), 0F);
503 * java.lang.Byte#floatValue()
506 assertEquals(127F, new Byte((byte) 127).floatValue(), 0.0);
/libcore/luni/src/test/java/libcore/java/lang/invoke/
H A DMethodHandleCombinersTest.java2190 float floatValue = 33333.141f;
2191 mh.invokeExact(floatValue, true, (byte) floatValue, (char) floatValue, (short) floatValue,
2192 (int) floatValue, (long) floatValue, floatValue, (double) floatValue,
2193 Float.valueOf(floatValue));
[all...]

Completed in 3333 milliseconds

12