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

12

/libcore/luni/src/main/java/java/lang/
H A DNumber.java58 public abstract float floatValue(); method in class:Number
H A DByte.java164 public float floatValue() { method in class:Byte
H A DShort.java163 public float floatValue() { method in class:Short
H A DDouble.java220 public float floatValue() { method in class:Double
H A DFloat.java224 public float floatValue() { method in class:Float
/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();
H A DBigDecimalTest.java324 * @tests java.math.BigDecimal#floatValue()
329 fl1.floatValue() == 234563782344567f);
332 .floatValue() == 2.345E37F);
335 .floatValue() == -1.00E-44F);
338 .floatValue() == -3E12F);
342 fl2.floatValue() == Float.POSITIVE_INFINITY);
346 fl2.floatValue() == Float.NEGATIVE_INFINITY);
/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());
H A DNumberFormatTest.java35 public float floatValue() { throw new UnsupportedOperationException(); }
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicInteger.java238 public float floatValue() { method in class:AtomicInteger
H A DAtomicLong.java252 public float floatValue() { method in class:AtomicLong
/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);
H A DShortTest.java639 * java.lang.Short#floatValue()
642 assertEquals(-1F, new Short((short) -1).floatValue(), 0F);
643 assertEquals(0F, new Short((short) 0).floatValue(), 0F);
644 assertEquals(1F, new Short((short) 1).floatValue(), 0F);
H A DFloatTest.java104 assertTrue("Created incorrect float", f.floatValue() == 900.89f);
114 assertTrue("Created incorrect Float", f.floatValue() == 900.89f);
190 * java.lang.Float#floatValue()
193 // Test for method float java.lang.Float.floatValue()
196 assertTrue("Returned incorrect floatValue", f.floatValue() == 87.657f
197 && (f2.floatValue() == -0.876f));
922 + Float.toString(f.floatValue()) + ")", Float.toString(f.floatValue()).equals(
H A DIntegerTest.java223 * java.lang.Integer#floatValue()
226 // Test for method float java.lang.Integer.floatValue()
228 .floatValue() == 65535.0f);
230 .floatValue() == -65535.0f);
969 * java.lang.Integer#floatValue()
972 assertEquals(-1F, new Integer(-1).floatValue(), 0F);
973 assertEquals(0F, new Integer(0).floatValue(), 0F);
974 assertEquals(1F, new Integer(1).floatValue(), 0F);
/libcore/luni/src/main/java/java/io/
H A DEmulatedFieldsForDumping.java216 output.writeFloat(fieldValue != null ? ((Float) fieldValue).floatValue() : 0);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAtomicIntegerTest.java238 * floatValue returns current value.
242 assertEquals(0.0f, ai.floatValue());
245 assertEquals((float)x, ai.floatValue());
H A DAtomicLongTest.java241 * floatValue returns current value.
245 assertEquals(0.0f, ai.floatValue());
248 assertEquals((float)x, ai.floatValue());
/libcore/support/src/test/java/tests/util/
H A DCallVerificationStack.java246 return value.floatValue();

Completed in 215 milliseconds

12