Lines Matching refs:f2
649 * {@code Float}, {@code f1} and {@code f2}, the value
650 * of {@code f1.equals(f2)} is {@code true} if and only if
653 * f1.floatValue() == f2.floatValue()
658 * <li>If {@code f1} and {@code f2} both represent
663 * {@code f2} represents {@code -0.0f}, or vice
862 * new Float(f1).compareTo(new Float(f2))
866 * @param f2 the second {@code float} to compare.
868 * numerically equal to {@code f2}; a value less than
870 * {@code f2}; and a value greater than {@code 0}
872 * {@code f2}.
875 public static int compare(float f1, float f2) {
876 if (f1 < f2)
878 if (f1 > f2)
883 int anotherBits = Float.floatToIntBits(f2);