Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fuzzyEquals (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/math/DoubleMath.java

       * implementations.
       *
       * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN
       * @since 13.0
       */
      public static boolean fuzzyEquals(double a, double b, double tolerance) {
        MathPreconditions.checkNonNegative("tolerance", tolerance);
        return Math.copySign(a - b, 1.0) <= tolerance
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

            assertTrue(DoubleMath.fuzzyEquals(inf, inf, tolerance));
            assertFalse(DoubleMath.fuzzyEquals(inf, -inf, tolerance));
          }
        }
      }
    
      public void testFuzzyEqualsInfiniteTolerance() {
        for (double a : DOUBLE_CANDIDATES_EXCEPT_NAN) {
          for (double b : DOUBLE_CANDIDATES_EXCEPT_NAN) {
            assertTrue(DoubleMath.fuzzyEquals(a, b, Double.POSITIVE_INFINITY));
          }
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
Back to Top