Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isMathematicalInteger (0.28 sec)

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

              return x;
            } else {
              return (long) x - 1;
            }
    
          case CEILING:
            if (x <= 0.0 || isMathematicalInteger(x)) {
              return x;
            } else {
              return (long) x + 1;
            }
    
          case DOWN:
            return x;
    
          case UP:
            if (isMathematicalInteger(x)) {
              return x;
            } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

          tmp += Double.doubleToRawLongBits(DoubleMath.factorial(factorials[j]));
        }
        return tmp;
      }
    
      @Benchmark
      int isMathematicalInteger(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          if (DoubleMath.isMathematicalInteger(doubles[j])) {
            tmp++;
          }
        }
        return tmp;
      }
    
      @Benchmark
      int isPowerOfTwo(int reps) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

          tmp += Double.doubleToRawLongBits(DoubleMath.factorial(factorials[j]));
        }
        return tmp;
      }
    
      @Benchmark
      int isMathematicalInteger(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          if (DoubleMath.isMathematicalInteger(doubles[j])) {
            tmp++;
          }
        }
        return tmp;
      }
    
      @Benchmark
      int isPowerOfTwo(int reps) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
        return trueLog2;
      }
    
      @GwtIncompatible // DoubleMath.isMathematicalInteger
      public void testIsMathematicalIntegerIntegral() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
          assertTrue(DoubleMath.isMathematicalInteger(d));
        }
      }
    
      @GwtIncompatible // DoubleMath.isMathematicalInteger
      public void testIsMathematicalIntegerFractional() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
        return trueLog2;
      }
    
      @GwtIncompatible // DoubleMath.isMathematicalInteger
      public void testIsMathematicalIntegerIntegral() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
          assertTrue(DoubleMath.isMathematicalInteger(d));
        }
      }
    
      @GwtIncompatible // DoubleMath.isMathematicalInteger
      public void testIsMathematicalIntegerFractional() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
Back to top