Lines Matching refs:Float

34  * The {@code Float} class wraps a value of primitive type
36 * {@code Float} contains a single field whose type is
50 public final class Float extends Number implements Comparable<Float> {
54 * {@code Float.intBitsToFloat(0x7f800000)}.
61 * {@code Float.intBitsToFloat(0xff800000)}.
68 * {@code Float.intBitsToFloat(0x7fc00000)}.
77 * {@code Float.intBitsToFloat(0x7f7fffff)}.
85 * equal to {@code Float.intBitsToFloat(0x00800000)}.
95 * and also equal to {@code Float.intBitsToFloat(0x1)}.
102 * Math.getExponent(Float.MAX_VALUE)}.
111 * Math.getExponent(Float.MIN_NORMAL)}.
130 public static final Class<Float> TYPE = Class.getPrimitiveClass("float");
262 * <tr><td>{@code Float.MAX_VALUE}</td>
268 * <tr><td>{@code Float.MIN_VALUE}</td>
293 * Returns a {@code Float} object holding the
380 * Finally, after rounding a {@code Float} object representing
411 * @return a {@code Float} object holding the value
416 public static Float valueOf(String s) throws NumberFormatException {
417 return new Float(FloatingDecimal.readJavaFormatString(s).floatValue());
421 * Returns a {@code Float} instance representing the specified
423 * If a new {@code Float} instance is not required, this method
425 * {@link #Float(float)}, as this method is likely to yield
430 * @return a {@code Float} instance representing {@code f}.
433 public static Float valueOf(float f) {
434 return new Float(f);
440 * by the {@code valueOf} method of class {@code Float}.
448 * @see java.lang.Float#valueOf(String)
480 * The value of the Float.
487 * Constructs a newly allocated {@code Float} object that
490 * @param value the value to be represented by the {@code Float}.
492 public Float(float value) {
497 * Constructs a newly allocated {@code Float} object that
500 * @param value the value to be represented by the {@code Float}.
502 public Float(double value) {
507 * Constructs a newly allocated {@code Float} object that
512 * @param s a string to be converted to a {@code Float}.
515 * @see java.lang.Float#valueOf(java.lang.String)
517 public Float(String s) throws NumberFormatException {
523 * Returns {@code true} if this {@code Float} value is a
534 * Returns {@code true} if this {@code Float} value is
546 * Returns a string representation of this {@code Float} object.
552 * @see java.lang.Float#toString(float)
555 return Float.toString(value);
559 * Returns the value of this {@code Float} as a {@code byte} (by
570 * Returns the value of this {@code Float} as a {@code short} (by
582 * Returns the value of this {@code Float} as an {@code int} (by
593 * Returns value of this {@code Float} as a {@code long} (by
604 * Returns the {@code float} value of this {@code Float} object.
613 * Returns the {@code double} value of this {@code Float} object.
624 * Returns a hash code for this {@code Float} object. The
627 * {@code float} value represented by this {@code Float}
640 * {@code null} and is a {@code Float} object that
649 * {@code Float}, {@code f1} and {@code f2}, the value
659 * {@code Float.NaN}, then the {@code equals} method returns
660 * {@code true}, even though {@code Float.NaN==Float.NaN}
674 * @see java.lang.Float#floatToIntBits(float)
677 return (obj instanceof Float)
678 && (floatToIntBits(((Float)obj).value) == floatToIntBits(value));
780 * use of the {@code Float.floatToRawIntBits} method.
822 * Compares two {@code Float} objects numerically. There are
829 * {@code Float.NaN} is considered by this method to
832 * (including {@code Float.POSITIVE_INFINITY}).
838 * This ensures that the <i>natural ordering</i> of {@code Float}
841 * @param anotherFloat the {@code Float} to be compared.
843 * numerically equal to this {@code Float}; a value
844 * less than {@code 0} if this {@code Float}
847 * {@code Float} is numerically greater than
853 public int compareTo(Float anotherFloat) {
854 return Float.compare(value, anotherFloat.value);
862 * new Float(f1).compareTo(new Float(f2))
882 int thisBits = Float.floatToIntBits(f1);
883 int anotherBits = Float.floatToIntBits(f2);