Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,328 for FLOAT64 (0.12 sec)

  1. src/math/mod.go

    //
    // Special cases are:
    //
    //	Mod(±Inf, y) = NaN
    //	Mod(NaN, y) = NaN
    //	Mod(x, 0) = NaN
    //	Mod(x, ±Inf) = x
    //	Mod(x, NaN) = NaN
    func Mod(x, y float64) float64 {
    	if haveArchMod {
    		return archMod(x, y)
    	}
    	return mod(x, y)
    }
    
    func mod(x, y float64) float64 {
    	if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
    		return NaN()
    	}
    	y = Abs(y)
    
    	yfr, yexp := Frexp(y)
    	r := x
    	if x < 0 {
    		r = -x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 903 bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue44799.go

    func Reduce[Elem1, Elem2 any](s []Elem1, initializer Elem2, f func(Elem2, Elem1) Elem2) Elem2 { var x Elem2; return x }
    
    func main() {
    	var s []int
    	var f1 func(int) float64
    	var f2 func(float64, int) float64
    	_ = Map[int](s, f1)
    	_ = Map(s, f1)
    	_ = Reduce[int](s, 0, f2)
    	_ = Reduce(s, 0, f2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 530 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    type allocProblemItem struct {
    	target     float64
    	lowerBound float64
    	upperBound float64
    }
    
    // relativeAllocItem is like allocProblemItem but with target avoiding zero and the bounds divided by the target
    type relativeAllocItem struct {
    	target             float64
    	relativeLowerBound float64
    	relativeUpperBound float64
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  4. cmd/metrics-v3-scanner.go

    	m.Set(scannerBucketScansFinished, float64(globalScannerMetrics.lifetime(scannerMetricScanBucketDrive)))
    	m.Set(scannerBucketScansStarted, float64(globalScannerMetrics.lifetime(scannerMetricScanBucketDrive)+uint64(globalScannerMetrics.activeDrives())))
    	m.Set(scannerDirectoriesScanned, float64(globalScannerMetrics.lifetime(scannerMetricScanFolder)))
    	m.Set(scannerObjectsScanned, float64(globalScannerMetrics.lifetime(scannerMetricScanObject)))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 19:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/go/types/builtins_test.go

    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    	{"complex", `type F64 float64; var re, im F64; _ = complex(re, im)`, `func(p.F64, p.F64) complex128`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/math/big/rat_test.go

    	df1 := delta(r, f1)
    	if df.Cmp(df0) > 0 {
    		t.Errorf("Rat(%v).Float64() = %g (%b), but previous float64 %g (%b) is closer", r, f, f, f0, f0)
    		return false
    	}
    	if df.Cmp(df1) > 0 {
    		t.Errorf("Rat(%v).Float64() = %g (%b), but next float64 %g (%b) is closer", r, f, f, f1, f1)
    		return false
    	}
    	if df.Cmp(df0) == 0 && !isEven64(f) {
    		t.Errorf("Rat(%v).Float64() = %g (%b); halfway should have rounded to %g (%b) instead", r, f, f, f0, f0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  7. test/typeparam/issue47258.go

    package main
    
    import (
    	"fmt"
    )
    
    type Numeric interface {
    	int32 | int64 | float64 | complex64
    }
    
    //go:noline
    func inc[T Numeric](x T) T {
    	x++
    	return x
    }
    func main() {
    	if got, want := inc(int32(5)), int32(6); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    	if got, want := inc(float64(5)), float64(6.0); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 686 bytes
    - Viewed (0)
  8. src/math/pow.go

    //	Pow(+Inf, y) = +0 for y < 0
    //	Pow(-Inf, y) = Pow(-0, -y)
    //	Pow(x, y) = NaN for finite x < 0 and finite non-integer y
    func Pow(x, y float64) float64 {
    	if haveArchPow {
    		return archPow(x, y)
    	}
    	return pow(x, y)
    }
    
    func pow(x, y float64) float64 {
    	switch {
    	case y == 0 || x == 1:
    		return 1
    	case y == 1:
    		return x
    	case IsNaN(x) || IsNaN(y):
    		return NaN()
    	case x == 0:
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 19:10:58 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/math/rand/v2/normal.go

    		i := u >> 32 & 0x7F
    		x := float64(j) * float64(wn[i])
    		if absInt32(j) < kn[i] {
    			// This case should be hit better than 99% of the time.
    			return x
    		}
    
    		if i == 0 {
    			// This extra work is only required for the base strip.
    			for {
    				x = -math.Log(r.Float64()) * (1.0 / rn)
    				y := -math.Log(r.Float64())
    				if y+y >= x*x {
    					break
    				}
    			}
    			if j > 0 {
    				return rn + x
    			}
    			return -rn - x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:08:47 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. cmd/metrics-v3-cluster-notification.go

    		return nil
    	}
    
    	nstats := globalEventNotifier.targetList.Stats()
    	m.Set(notificationCurrentSendInProgress, float64(nstats.CurrentSendCalls))
    	m.Set(notificationEventsErrorsTotal, float64(nstats.EventsErrorsTotal))
    	m.Set(notificationEventsSentTotal, float64(nstats.TotalEvents))
    	m.Set(notificationEventsSkippedTotal, float64(nstats.EventsSkipped))
    
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Apr 24 04:10:35 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top