Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 176 for Floor (0.04 sec)

  1. guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      // Relies on the correctness of log10(long, FLOOR) and of pow(long, int).
      @GwtIncompatible // TODO
      public void testLog10Exact() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          int floor = LongMath.log10(x, FLOOR);
          boolean expectedSuccess = LongMath.pow(10, floor) == x;
          try {
            assertEquals(floor, LongMath.log10(x, UNNECESSARY));
            assertTrue(expectedSuccess);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFloorHole() {
        resetWithHole();
        assertEquals(a, navigableSet.floor(a));
        assertEquals(a, navigableSet.floor(b));
        assertEquals(c, navigableSet.floor(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/NumberUtil.java

     */
    
    package org.gradle.internal.util;
    
    import javax.annotation.Nullable;
    import java.math.BigDecimal;
    import java.math.MathContext;
    import java.util.List;
    
    import static java.math.RoundingMode.FLOOR;
    import static java.util.Arrays.asList;
    import static java.util.Collections.unmodifiableList;
    
    /**
     * Utility methods for working with numbers
     */
    public class NumberUtil {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/amd64.s

    	JCS	2(PC)
    	JMP	*(R12) // JMP (R12)
    	JCS	2(PC)
    //	JMP	*(R12*4) // TODO: This line is silently dropped on the floor!
    	JCS	2(PC)
    	JMP	*(R12)(R13*4) // JMP (R12)(R13*4)
    	JCS	2(PC)
    	JMP	*(AX) // JMP (AX)
    	JCS	2(PC)
    	JMP	*(SP) // JMP (SP)
    	JCS	2(PC)
    //	JMP	*(AX*4) // TODO: This line is silently dropped on the floor!
    	JCS	2(PC)
    	JMP	*(AX)(AX*4) // JMP (AX)(AX*4)
    	JCS	2(PC)
    	JMP	4(SP)
    	JCS	2(PC)
    	JMP	(R12)
    	JCS	2(PC)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 18:57:21 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  5. test/fixedbugs/issue23522.go

    type S struct {
    	u int64
    	n int32
    }
    
    func F1(f float64) *S {
    	s := f
    	pf := math.Copysign(f, 1)
    	u := math.Floor(pf)
    	return &S{
    		u: int64(math.Copysign(u, s)),
    		n: int32(math.Copysign((pf-u)*1e9, s)),
    	}
    }
    
    func F2(f float64) *S {
    	s := f
    	f = math.Copysign(f, 1)
    	u := math.Floor(f)
    	return &S{
    		u: int64(math.Copysign(u, s)),
    		n: int32(math.Copysign((f-u)*1e9, s)),
    	}
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 21:51:55 UTC 2018
    - 724 bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      // Relies on the correctness of log10(long, FLOOR) and of pow(long, int).
      @GwtIncompatible // TODO
      public void testLog10Exact() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          int floor = LongMath.log10(x, FLOOR);
          boolean expectedSuccess = LongMath.pow(10, floor) == x;
          try {
            assertEquals(floor, LongMath.log10(x, UNNECESSARY));
            assertTrue(expectedSuccess);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Integer.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. src/strconv/ftoaryu_test.go

    	for x := -1600; x <= +1600; x++ {
    		iMath := MulByLog2Log10(x)
    		fMath := int(math.Floor(float64(x) * math.Ln2 / math.Ln10))
    		if iMath != fMath {
    			t.Errorf("mulByLog2Log10(%d) failed: %d vs %d\n", x, iMath, fMath)
    		}
    	}
    }
    
    func TestMulByLog10Log2(t *testing.T) {
    	for x := -500; x <= +500; x++ {
    		iMath := MulByLog10Log2(x)
    		fMath := int(math.Floor(float64(x) * math.Ln10 / math.Ln2))
    		if iMath != fMath {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 08:44:21 UTC 2021
    - 759 bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/IntMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Integer.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/LongMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Long.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top