Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 248 for FLOAT64 (0.14 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation_test.go

    				"strings":             []interface{}{"a", "b", "a"},
    				"integers":            []interface{}{int64(1), int64(2), int64(1)},
    				"booleans":            []interface{}{false, true, true},
    				"float64":             []interface{}{float64(1.0), float64(2.0), float64(2.0)},
    				"nil":                 []interface{}{"a", nil, nil},
    				"empty maps":          []interface{}{map[string]interface{}{"a": "b"}, map[string]interface{}{}, map[string]interface{}{}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/encoding/binary/binary.go

    	case reflect.Uint64:
    		v.SetUint(d.uint64())
    
    	case reflect.Float32:
    		v.SetFloat(float64(math.Float32frombits(d.uint32())))
    	case reflect.Float64:
    		v.SetFloat(math.Float64frombits(d.uint64()))
    
    	case reflect.Complex64:
    		v.SetComplex(complex(
    			float64(math.Float32frombits(d.uint32())),
    			float64(math.Float32frombits(d.uint32())),
    		))
    	case reflect.Complex128:
    		v.SetComplex(complex(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    		},
    		{
    			name:          "smallest nonzero float64",
    			in:            hex("fb0000000000000001"),
    			want:          float64(math.SmallestNonzeroFloat64),
    			assertOnError: assertNilError,
    		},
    		{
    			name:          "max float64 value",
    			in:            hex("fb7fefffffffffffff"),
    			want:          float64(math.MaxFloat64),
    			assertOnError: assertNilError,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. src/cmd/trace/goroutines.go

    			}
    		}
    
    		// Compute the percent of total execution time these goroutines represent.
    		execTimePercent := ""
    		if totalExecTime > 0 {
    			execTimePercent = fmt.Sprintf("%.2f%%", float64(execTime)/float64(totalExecTime)*100)
    		}
    
    		// Sort.
    		sortBy := r.FormValue("sortby")
    		if _, ok := validNonOverlappingStats[sortBy]; ok {
    			slices.SortFunc(goroutines, func(a, b goroutine) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. cni/pkg/log/uds_test.go

    	out, err := io.ReadAll(r)
    	assert.NoError(t, err)
    
    	cases := []struct {
    		level string
    		msg   string
    		key   *float64
    	}{
    		{"debug", "debug log", nil},
    		{"info", "info log", nil},
    		{"warn", "warn log", nil},
    		{"error", "error log", nil},
    		{"info", "with labels", ptr.Of(float64(2))},
    	}
    	// For each level, there should be two lines, one from direct log,
    	// the other one from UDS server
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/encoding/binary/binary_test.go

    )
    
    type Struct struct {
    	Int8       int8
    	Int16      int16
    	Int32      int32
    	Int64      int64
    	Uint8      uint8
    	Uint16     uint16
    	Uint32     uint32
    	Uint64     uint64
    	Float32    float32
    	Float64    float64
    	Complex64  complex64
    	Complex128 complex128
    	Array      [4]uint8
    	Bool       bool
    	BoolArray  [4]bool
    }
    
    type T struct {
    	Int     int
    	Uint    uint
    	Uintptr uintptr
    	Array   [4]int
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  7. src/go/constant/example_test.go

    	Ar, exact := constant.Float64Val(constant.Real(c))
    	if !exact {
    		fmt.Printf("Could not represent real part %s exactly as float64\n", constant.Real(c))
    	}
    	Ai, exact := constant.Float64Val(constant.Imag(c))
    	if !exact {
    		fmt.Printf("Could not represent imaginary part %s as exactly as float64\n", constant.Imag(c))
    	}
    	C := complex(Ar, Ai)
    
    	fmt.Println("literal", 25.3+55i)
    	fmt.Println("go/constant", c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/encoding/gob/encoder_test.go

    		t.Error(err)
    	}
    }
    
    func TestTypeToPtrPtrPtrPtrType(t *testing.T) {
    	type Type2 struct {
    		A ****float64
    	}
    	t2 := Type2{}
    	t2.A = new(***float64)
    	*t2.A = new(**float64)
    	**t2.A = new(*float64)
    	***t2.A = new(float64)
    	****t2.A = 27.4
    	t2pppp := new(***Type2)
    	if err := encAndDec(t2, t2pppp); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func int64mod(int64, int64) int64
    func uint64mod(uint64, uint64) uint64
    func float64toint64(float64) int64
    func float64touint64(float64) uint64
    func float64touint32(float64) uint32
    func int64tofloat64(int64) float64
    func int64tofloat32(int64) float32
    func uint64tofloat64(uint64) float64
    func uint64tofloat32(uint64) float32
    func uint32tofloat64(uint32) float64
    
    func complex128div(num complex128, den complex128) (quo complex128)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. 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)
Back to top