Lines Matching defs:Float

32  * The {@code Float} class wraps a value of primitive type
34 * {@code Float} contains a single field whose type is
48 public final class Float extends Number implements Comparable<Float> {
52 * {@code Float.intBitsToFloat(0x7f800000)}.
59 * {@code Float.intBitsToFloat(0xff800000)}.
66 * {@code Float.intBitsToFloat(0x7fc00000)}.
75 * {@code Float.intBitsToFloat(0x7f7fffff)}.
83 * equal to {@code Float.intBitsToFloat(0x00800000)}.
93 * and also equal to {@code Float.intBitsToFloat(0x1)}.
100 * Math.getExponent(Float.MAX_VALUE)}.
109 * Math.getExponent(Float.MIN_NORMAL)}.
136 public static final Class<Float> TYPE = (Class<Float>) Class.getPrimitiveClass("float");
271 * <tr><td>{@code Float.MAX_VALUE}</td>
277 * <tr><td>{@code Float.MIN_VALUE}</td>
287 if (Math.abs(f) < Float.MIN_NORMAL
295 Float.MIN_EXPONENT));
303 * Returns a {@code Float} object holding the
382 * Finally, after rounding a {@code Float} object representing
413 * @return a {@code Float} object holding the value
418 public static Float valueOf(String s) throws NumberFormatException {
419 return new Float(parseFloat(s));
423 * Returns a {@code Float} instance representing the specified
425 * If a new {@code Float} instance is not required, this method
427 * {@link #Float(float)}, as this method is likely to yield
432 * @return a {@code Float} instance representing {@code f}.
436 public static Float valueOf(float f) {
437 return new Float(f);
443 * by the {@code valueOf} method of class {@code Float}.
451 * @see java.lang.Float#valueOf(String)
494 return Math.abs(f) <= Float.MAX_VALUE;
498 * The value of the Float.
505 * Constructs a newly allocated {@code Float} object that
508 * @param value the value to be represented by the {@code Float}.
516 public Float(float value) {
521 * Constructs a newly allocated {@code Float} object that
524 * @param value the value to be represented by the {@code Float}.
529 * {@code Float.valueOf((float)value)}.
532 public Float(double value) {
537 * Constructs a newly allocated {@code Float} object that
542 * @param s a string to be converted to a {@code Float}.
550 * to convert a string to a {@code Float} object.
553 public Float(String s) throws NumberFormatException {
558 * Returns {@code true} if this {@code Float} value is a
569 * Returns {@code true} if this {@code Float} value is
581 * Returns a string representation of this {@code Float} object.
587 * @see java.lang.Float#toString(float)
590 return Float.toString(value);
594 * Returns the value of this {@code Float} as a {@code byte} after
606 * Returns the value of this {@code Float} as a {@code short}
619 * Returns the value of this {@code Float} as an {@code int} after
631 * Returns value of this {@code Float} as a {@code long} after a
643 * Returns the {@code float} value of this {@code Float} object.
653 * Returns the value of this {@code Float} as a {@code double}
665 * Returns a hash code for this {@code Float} object. The
668 * {@code float} value represented by this {@code Float}
675 return Float.hashCode(value);
680 * {@code Float.hashCode()}.
694 * {@code null} and is a {@code Float} object that
703 * {@code Float}, {@code f1} and {@code f2}, the value
713 * {@code Float.NaN}, then the {@code equals} method returns
714 * {@code true}, even though {@code Float.NaN==Float.NaN}
728 * @see java.lang.Float#floatToIntBits(float)
731 return (obj instanceof Float)
732 && (floatToIntBits(((Float)obj).value) == floatToIntBits(value));
832 * use of the {@code Float.floatToRawIntBits} method.
875 * Compares two {@code Float} objects numerically. There are
882 * {@code Float.NaN} is considered by this method to
885 * (including {@code Float.POSITIVE_INFINITY}).
891 * This ensures that the <i>natural ordering</i> of {@code Float}
894 * @param anotherFloat the {@code Float} to be compared.
896 * numerically equal to this {@code Float}; a value
897 * less than {@code 0} if this {@code Float}
900 * {@code Float} is numerically greater than
906 public int compareTo(Float anotherFloat) {
907 return Float.compare(value, anotherFloat.value);
915 * new Float(f1).compareTo(new Float(f2))
935 int thisBits = Float.floatToIntBits(f1);
936 int anotherBits = Float.floatToIntBits(f2);