Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 134 for CEIL (0.03 sec)

  1. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleSqrt() {
    	const (
    		a = 3
    		b = 4
    	)
    	c := math.Sqrt(a*a + b*b)
    	fmt.Printf("%.1f", c)
    	// Output: 5.0
    }
    
    func ExampleCeil() {
    	c := math.Ceil(1.49)
    	fmt.Printf("%.1f", c)
    	// Output: 2.0
    }
    
    func ExampleFloor() {
    	c := math.Floor(1.51)
    	fmt.Printf("%.1f", c)
    	// Output: 1.0
    }
    
    func ExamplePow() {
    	c := math.Pow(2, 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/metrics/cache.go

    }
    
    // numDesiredSlices calculates the number of EndpointSlices that would exist
    // with ideal endpoint distribution.
    func numDesiredSlices(numEndpoints, maxPerSlice int) int {
    	return int(math.Ceil(float64(numEndpoints) / float64(maxPerSlice)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding.go

    // to a hand of the given size.  The result is meaningful only if
    // 1 <= handSize <= deckSize <= 1<<26.
    func RequiredEntropyBits(deckSize, handSize int) int {
    	return int(math.Ceil(math.Log2(float64(deckSize)) * float64(handSize)))
    }
    
    // Dealer contains some necessary parameters and provides some methods for shuffle sharding.
    // Dealer is thread-safe.
    type Dealer struct {
    	deckSize int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 08:38:03 UTC 2019
    - 4K bytes
    - Viewed (0)
  4. src/math/all_test.go

    		}
    	}
    }
    
    func TestCeil(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		if f := Ceil(vf[i]); !alike(ceil[i], f) {
    			t.Errorf("Ceil(%g) = %g, want %g", vf[i], f, ceil[i])
    		}
    	}
    	for i := 0; i < len(vfceilSC); i++ {
    		if f := Ceil(vfceilSC[i]); !alike(ceilSC[i], f) {
    			t.Errorf("Ceil(%g) = %g, want %g", vfceilSC[i], f, ceilSC[i])
    		}
    	}
    }
    
    func TestCopysign(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/mutating_work_estimator.go

    		//   events are equal and try to estimate the cost of a single event based on
    		//   some historical data about size of events.
    		finalSeats = uint64(math.Ceil(float64(watchCount) / e.config.WatchesPerSeat))
    		finalWork := SeatsTimesDuration(float64(finalSeats), e.config.eventAdditionalDuration())
    
    		// While processing individual events is highly parallel,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:26:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. test/codegen/math.go

    func approx(x float64) {
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]2"
    	// s390x:"FIDBR\t[$]6"
    	// arm64:"FRINTPD"
    	// ppc64x:"FRIP"
    	// wasm:"F64Ceil"
    	sink64[0] = math.Ceil(x)
    
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]1"
    	// s390x:"FIDBR\t[$]7"
    	// arm64:"FRINTMD"
    	// ppc64x:"FRIM"
    	// wasm:"F64Floor"
    	sink64[1] = math.Floor(x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/list_work_estimator.go

    	// will be processed by the list request.
    	// we will come up with a different formula for the transformation function and/or
    	// fine tune this number in future iteratons.
    	seats := uint64(math.Ceil(float64(estimatedObjectsToBeProcessed) / e.config.ObjectsPerSeat))
    
    	// make sure we never return a seat of zero
    	if seats < minSeats {
    		seats = minSeats
    	}
    	if seats > maxSeats {
    		seats = maxSeats
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "F32Trunc", asm: "F32Trunc", argLength: 1, reg: fp32_11, typ: "Float32"},       // trunc(arg0)
    		{name: "F32Ceil", asm: "F32Ceil", argLength: 1, reg: fp32_11, typ: "Float32"},         // ceil(arg0)
    		{name: "F32Floor", asm: "F32Floor", argLength: 1, reg: fp32_11, typ: "Float32"},       // floor(arg0)
    		{name: "F32Nearest", asm: "F32Nearest", argLength: 1, reg: fp32_11, typ: "Float32"},   // round(arg0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. cmd/benchmark-utils_test.go

    	b.ReportAllocs()
    	// the actual benchmark for PutObjectPart starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    		totalPartsNR := int(math.Ceil(float64(objSize) / float64(partSize)))
    		for j := 0; j < totalPartsNR; j++ {
    			if j < totalPartsNR-1 {
    				textPartData = textData[j*partSize : (j+1)*partSize-1]
    			} else {
    				textPartData = textData[j*partSize:]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  10. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy

            expect:
            def size = getZip().size()
    
            assert size <= getMaxDistributionSizeBytes() : "Distribution content needs to be verified. If the increase is expected, raise the size by ${Math.ceil((size - getMaxDistributionSizeBytes()) / 1024 / 1024)}"
        }
    
        def "no duplicate jar entries in distribution"() {
            given:
            def entriesByPath = zipEntries.groupBy { it.name }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top