Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for FLOAT64 (0.32 sec)

  1. src/math/all_test.go

    	{NaN(), NaN()},
    
    	// Issue #7394 overflow checks
    	{2, float64(1 << 32)},
    	{2, -float64(1 << 32)},
    	{-2, float64(1<<32 + 1)},
    	{0.5, float64(1 << 45)},
    	{0.5, -float64(1 << 45)},
    	{Nextafter(1, 2), float64(1 << 63)},
    	{Nextafter(1, -2), float64(1 << 63)},
    	{Nextafter(-1, 2), float64(1 << 63)},
    	{Nextafter(-1, -2), float64(1 << 63)},
    
    	// Issue #57465
    	{Copysign(0, -1), 1e19},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		t.Errorf("Expected %#+v, got #%+v", e, a)
    	}
    	if e, a := []float64{42, 0}, fairAlloc([]float64{47, 0}, 42); !reflect.DeepEqual(e, a) {
    		t.Errorf("Expected %#+v, got #%+v", e, a)
    	}
    	if e, a := []float64{1, 41}, fairAlloc([]float64{1, 47}, 42); !reflect.DeepEqual(e, a) {
    		t.Errorf("Expected %#+v, got #%+v", e, a)
    	}
    	if e, a := []float64{3, 5, 5, 1}, fairAlloc([]float64{3, 7, 9, 1}, 14); !reflect.DeepEqual(e, a) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  3. src/math/big/float_test.go

    func alike(x, y *Float) bool {
    	return x.Cmp(y) == 0 && x.Signbit() == y.Signbit()
    }
    
    func alike32(x, y float32) bool {
    	// we can ignore NaNs
    	return x == y && math.Signbit(float64(x)) == math.Signbit(float64(y))
    }
    
    func alike64(x, y float64) bool {
    	// we can ignore NaNs
    	return x == y && math.Signbit(x) == math.Signbit(y)
    }
    
    func TestFloatMantExp(t *testing.T) {
    	for _, test := range []struct {
    		x    string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  4. src/encoding/json/decode_test.go

    }
    
    // ifaceNumAsFloat64/ifaceNumAsNumber are used to test unmarshaling with and
    // without UseNumber
    var ifaceNumAsFloat64 = map[string]any{
    	"k1": float64(1),
    	"k2": "s",
    	"k3": []any{float64(1), float64(2.0), float64(3e-3)},
    	"k4": map[string]any{"kk1": "s", "kk2": float64(2)},
    }
    
    var ifaceNumAsNumber = map[string]any{
    	"k1": Number("1"),
    	"k2": "s",
    	"k3": []any{Number("1"), Number("2.0"), Number("3e-3")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  5. src/runtime/mgcpacer.go

    	// skew between the two values. This is generally OK as the
    	// values shift relatively slowly over the course of a GC
    	// cycle.
    	assistWorkPerByte := float64(scanWorkRemaining) / float64(heapRemaining)
    	assistBytesPerWork := float64(heapRemaining) / float64(scanWorkRemaining)
    	c.assistWorkPerByte.Store(assistWorkPerByte)
    	c.assistBytesPerWork.Store(assistBytesPerWork)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FCVTZUS", argLength: 1, reg: fpgp, asm: "FCVTZUS"},   // float32 -> uint64
    		{name: "FCVTZUD", argLength: 1, reg: fpgp, asm: "FCVTZUD"},   // float64 -> uint64
    		{name: "FCVTSD", argLength: 1, reg: fp11, asm: "FCVTSD"},     // float32 -> float64
    		{name: "FCVTDS", argLength: 1, reg: fp11, asm: "FCVTDS"},     // float64 -> float32
    
    		// floating-point round to integral
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  7. src/runtime/mgcscavenge.go

    	// new memory has been freed into it.
    	sc.setNonEmpty()
    }
    
    type piController struct {
    	kp float64 // Proportional constant.
    	ti float64 // Integral time constant.
    	tt float64 // Reset time.
    
    	min, max float64 // Output boundaries.
    
    	// PI controller state.
    
    	errIntegral float64 // Integral of the error from t=0 to now.
    
    	// Error flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/S390XOps.go

    		{name: "LDGR", argLength: 1, reg: gpfp, asm: "LDGR"}, // move int64 to float64 (no conversion)
    		{name: "LGDR", argLength: 1, reg: fpgp, asm: "LGDR"}, // move float64 to int64 (no conversion)
    
    		{name: "CFDBRA", argLength: 1, reg: fpgp, asm: "CFDBRA", clobberFlags: true}, // convert float64 to int32
    		{name: "CGDBRA", argLength: 1, reg: fpgp, asm: "CGDBRA", clobberFlags: true}, // convert float64 to int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 52.5K bytes
    - Viewed (0)
  9. src/go/types/api_test.go

    		{`package e1; const _ = float32(-1e-200)`, `float32(-1e-200)`, `float32`, `0`},
    		{`package e2; const _ = float64( 1e-2000)`, `float64(1e-2000)`, `float64`, `0`},
    		{`package e3; const _ = float64(-1e-2000)`, `float64(-1e-2000)`, `float64`, `0`},
    		{`package e4; const _ = complex64( 1e-200)`, `complex64(1e-200)`, `complex64`, `(0 + 0i)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		{`package e1; const _ = float32(-1e-200)`, `float32(-1e-200)`, `float32`, `0`},
    		{`package e2; const _ = float64( 1e-2000)`, `float64(1e-2000)`, `float64`, `0`},
    		{`package e3; const _ = float64(-1e-2000)`, `float64(-1e-2000)`, `float64`, `0`},
    		{`package e4; const _ = complex64( 1e-200)`, `complex64(1e-200)`, `complex64`, `(0 + 0i)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top