Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 2,057 for float2 (0.15 sec)

  1. src/internal/reflectlite/tostring_test.go

    		return strconv.FormatInt(val.Int(), 10)
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return strconv.FormatUint(val.Uint(), 10)
    	case reflect.Float32, reflect.Float64:
    		return strconv.FormatFloat(val.Float(), 'g', -1, 64)
    	case reflect.Complex64, reflect.Complex128:
    		c := val.Complex()
    		return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. src/math/big/ratconv_test.go

    			continue
    		}
    		f, exact := r.Float32()
    
    		// 1. Check string -> Rat -> float32 conversions are
    		// consistent with strconv.ParseFloat.
    		// Skip this check if the input uses "a/b" rational syntax.
    		if !strings.Contains(input, "/") {
    			e64, _ := strconv.ParseFloat(input, 32)
    			e := float32(e64)
    
    			// Careful: negative Rats too small for
    			// float64 become -0, but Rat obviously cannot
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/Encdec.java

            return l;
        }
    
    
        /*
         * Encode floats
         */
    
        public static int enc_floatle ( float f, byte[] dst, int di ) {
            return enc_uint32le(Float.floatToIntBits(f), dst, di);
        }
    
    
        public static int enc_floatbe ( float f, byte[] dst, int di ) {
            return enc_uint32be(Float.floatToIntBits(f), dst, di);
        }
    
    
        /*
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

    }
    
    // Passed to `TF_NewTensor` to indicate how an array of floats should be
    // deleted.
    static void FloatDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<float*>(data);
    }
    
    // Creates a TFE_TensorHandle with value `v`.
    TensorHandlePtr FloatTensorHandle(float v, TF_Status* status) {
      const int num_bytes = sizeof(float);
      float* values = new float[1];
      values[0] = v;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 15:44:44 UTC 2021
    - 12.5K bytes
    - Viewed (0)
  5. cmd/warm-backend-minio.go

    		err = errors.New("entity too large")
    		return
    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    	// Part size.
    	partSize = int64(partSizeFlt)
    	if partSize == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/panicprint.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type MyBool bool
    type MyComplex128 complex128
    type MyComplex64 complex64
    type MyFloat32 float32
    type MyFloat64 float64
    type MyInt int
    type MyInt8 int8
    type MyInt16 int16
    type MyInt32 int32
    type MyInt64 int64
    type MyString string
    type MyUint uint
    type MyUint8 uint8
    type MyUint16 uint16
    type MyUint32 uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    		},
    		{
    			// Invalid []float data
    			data: "{\"fi\":123}",
    			obj:  &F{},
    			err:  fmt.Errorf("json: cannot unmarshal number into Go value of type []float32"),
    		},
    		{
    			// Invalid []float data
    			data: "{\"fi\":\"abc\"}",
    			obj:  &F{},
    			err:  fmt.Errorf("json: cannot unmarshal string into Go value of type []float32"),
    		},
    		{
    			// Invalid []float data
    			data: "{\"fi\":[\"abc\"]}",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go

    		if !obj.CanSet() {
    			return
    		}
    		switch obj.Kind() {
    		case reflect.String:
    			obj.SetString(obj.String() + "x")
    		case reflect.Bool:
    			obj.SetBool(!obj.Bool())
    		case reflect.Float32, reflect.Float64:
    			obj.SetFloat(obj.Float()*2.0 + 1.0)
    		case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
    			obj.SetInt(obj.Int() + 1)
    		case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. src/go/scanner/scanner_test.go

    		{token.IMAG, "0678i", "0678i", ""},
    
    		// decimal floats
    		{token.FLOAT, "0.", "0.", ""},
    		{token.FLOAT, "123.", "123.", ""},
    		{token.FLOAT, "0123.", "0123.", ""},
    
    		{token.FLOAT, ".0", ".0", ""},
    		{token.FLOAT, ".123", ".123", ""},
    		{token.FLOAT, ".0123", ".0123", ""},
    
    		{token.FLOAT, "0.0", "0.0", ""},
    		{token.FLOAT, "123.123", "123.123", ""},
    		{token.FLOAT, "0123.0123", "0123.0123", ""},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/stmt0.go

    	case nil:
    		var v bool = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	case int:
    		var v int = t
    		_ = v
    	case float32, complex64:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	default:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	}
    
    	var t I
    	switch t.(type) {
    	case T:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top