Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for modfn (0.1 sec)

  1. pkg/controller/volume/persistentvolume/index_test.go

    				Requests: v1.ResourceList{
    					v1.ResourceName(v1.ResourceStorage): resource.MustParse(size),
    				},
    			},
    			VolumeMode: &fs,
    		},
    	}
    	if modfn != nil {
    		modfn(&pvc)
    	}
    	return &pvc
    }
    
    func makeVolumeModePVC(size string, mode *v1.PersistentVolumeMode, modfn func(*v1.PersistentVolumeClaim)) *v1.PersistentVolumeClaim {
    	pvc := v1.PersistentVolumeClaim{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "claim01",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  2. src/math/modf.go

    package math
    
    // Modf returns integer and fractional floating-point numbers
    // that sum to f. Both values have the same sign as f.
    //
    // Special cases are:
    //
    //	Modf(±Inf) = ±Inf, NaN
    //	Modf(NaN) = NaN, NaN
    func Modf(f float64) (int float64, frac float64) {
    	if haveArchModf {
    		return archModf(f)
    	}
    	return modf(f)
    }
    
    func modf(f float64) (int float64, frac float64) {
    	if f < 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 913 bytes
    - Viewed (0)
  3. src/math/floor.go

    		return archFloor(x)
    	}
    	return floor(x)
    }
    
    func floor(x float64) float64 {
    	if x == 0 || IsNaN(x) || IsInf(x, 0) {
    		return x
    	}
    	if x < 0 {
    		d, fract := Modf(-x)
    		if fract != 0.0 {
    			d = d + 1
    		}
    		return -d
    	}
    	d, _ := Modf(x)
    	return d
    }
    
    // Ceil returns the least integer value greater than or equal to x.
    //
    // Special cases are:
    //
    //	Ceil(±0) = ±0
    //	Ceil(±Inf) = ±Inf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. src/math/example_test.go

    	fmt.Printf("%.2f\n", math.Cbrt(8))
    	fmt.Printf("%.2f\n", math.Cbrt(27))
    	// Output:
    	// 2.00
    	// 3.00
    }
    
    func ExampleModf() {
    	int, frac := math.Modf(3.14)
    	fmt.Printf("%.2f, %.2f\n", int, frac)
    
    	int, frac = math.Modf(-2.71)
    	fmt.Printf("%.2f, %.2f\n", int, frac)
    	// Output:
    	// 3.00, 0.14
    	// -2.00, -0.71
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  5. src/math/pow.go

    		// Without this check and if x overflows int64 the int64(xi) conversion below may produce incorrect results
    		// on some architectures (and does so on arm64). See issue #57465.
    		return false
    	}
    
    	xi, xf := Modf(x)
    	return xf == 0 && int64(xi)&1 == 1
    }
    
    // Special cases taken from FreeBSD's /usr/src/lib/msun/src/e_pow.c
    // updated by IEEE Std. 754-2008 "Section 9.2.1 Special values".
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 19:10:58 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/internal/trace/mud.go

    	}
    
    	// Update the histogram.
    	h := &d.hist
    	lbFloat, lf := math.Modf(l * mudDegree)
    	lb := int(lbFloat)
    	if lb >= mudDegree {
    		lb, lf = mudDegree-1, 1
    	}
    	if l == r {
    		h[lb] += area
    	} else {
    		rbFloat, rf := math.Modf(r * mudDegree)
    		rb := int(rbFloat)
    		if rb >= mudDegree {
    			rb, rf = mudDegree-1, 1
    		}
    		if lb == rb {
    			h[lb] += area
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/math/gamma.go

    	return z * p / q
    
    small:
    	if x == 0 {
    		return Inf(1)
    	}
    	return z / ((1 + Euler*x) * x)
    }
    
    func isNegInt(x float64) bool {
    	if x < 0 {
    		_, xf := Modf(x)
    		return xf == 0
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. src/math/all_test.go

    	for i := 0; i < len(vf); i++ {
    		if f, g := Modf(vf[i]); !veryclose(modf[i][0], f) || !veryclose(modf[i][1], g) {
    			t.Errorf("Modf(%g) = %g, %g, want %g, %g", vf[i], f, g, modf[i][0], modf[i][1])
    		}
    	}
    	for i := 0; i < len(vfmodfSC); i++ {
    		if f, g := Modf(vfmodfSC[i]); !alike(modfSC[i][0], f) || !alike(modfSC[i][1], g) {
    			t.Errorf("Modf(%g) = %g, %g, want %g, %g", vfmodfSC[i], f, g, modfSC[i][0], modfSC[i][1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"MaxUint8", Const, 0},
    		{"Min", Func, 0},
    		{"MinInt", Const, 17},
    		{"MinInt16", Const, 0},
    		{"MinInt32", Const, 0},
    		{"MinInt64", Const, 0},
    		{"MinInt8", Const, 0},
    		{"Mod", Func, 0},
    		{"Modf", Func, 0},
    		{"NaN", Func, 0},
    		{"Nextafter", Func, 0},
    		{"Nextafter32", Func, 4},
    		{"Phi", Const, 0},
    		{"Pi", Const, 0},
    		{"Pow", Func, 0},
    		{"Pow10", Func, 0},
    		{"Remainder", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg math, func Logb(float64) float64
    pkg math, func Max(float64, float64) float64
    pkg math, func Min(float64, float64) float64
    pkg math, func Mod(float64, float64) float64
    pkg math, func Modf(float64) (float64, float64)
    pkg math, func NaN() float64
    pkg math, func Nextafter(float64, float64) float64
    pkg math, func Pow(float64, float64) float64
    pkg math, func Pow10(int) float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top