Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,204 for float1 (0.29 sec)

  1. api/go1.5.txt

    pkg math/big, method (*Float) Mode() RoundingMode
    pkg math/big, method (*Float) Mul(*Float, *Float) *Float
    pkg math/big, method (*Float) Neg(*Float) *Float
    pkg math/big, method (*Float) Parse(string, int) (*Float, int, error)
    pkg math/big, method (*Float) Prec() uint
    pkg math/big, method (*Float) Quo(*Float, *Float) *Float
    pkg math/big, method (*Float) Rat(*Rat) (*Rat, Accuracy)
    pkg math/big, method (*Float) Set(*Float) *Float
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  2. src/go/constant/value_test.go

    	}
    }
    
    func TestMakeFloat64(t *testing.T) {
    	var zero float64
    	for _, arg := range []float64{
    		-math.MaxFloat32,
    		-10,
    		-0.5,
    		-zero,
    		zero,
    		1,
    		10,
    		123456789.87654321e-23,
    		1e10,
    		math.MaxFloat64,
    	} {
    		val := MakeFloat64(arg)
    		if val.Kind() != Float {
    			t.Errorf("%v: got kind = %d; want %d", arg, val.Kind(), Float)
    		}
    
    		// -0.0 is mapped to 0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  3. src/math/floor_amd64.s

    	ANDNPD	X0, X2 // X2 = sign
    	CVTSQ2SD	AX, X1	// X1 = float(int(x))
    	CMPSD	X1, X0, 2 // compare LE; X0 = 0xffffffffffffffff or 0
    	ORPD	X2, X1 // if X1 = 0.0, incorporate sign
    	MOVSD	$1.0, X3
    	ANDNPD	X3, X0
    	ORPD	X2, X0 // if float(int(x)) <= x {X0 = 1} else {X0 = -0}
    	ADDSD	X1, X0
    	MOVSD	X0, ret+8(FP)
    	RET
    isBig_ceil:
    	MOVQ	AX, ret+8(FP)
    	RET
    
    // func archTrunc(x float64) float64
    TEXT ·archTrunc(SB),NOSPLIT,$0
    	MOVQ	x+0(FP), AX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. src/database/sql/driver/types.go

    	case reflect.Uint64:
    		u64 := rv.Uint()
    		if u64 >= 1<<63 {
    			return nil, fmt.Errorf("uint64 values with high bit set are not supported")
    		}
    		return int64(u64), nil
    	case reflect.Float32, reflect.Float64:
    		return rv.Float(), nil
    	case reflect.Bool:
    		return rv.Bool(), nil
    	case reflect.Slice:
    		ek := rv.Type().Elem().Kind()
    		if ek == reflect.Uint8 {
    			return rv.Bytes(), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/encoding/binary/binary.go

    	case reflect.Uint64:
    		e.uint64(v.Uint())
    
    	case reflect.Float32:
    		e.uint32(math.Float32bits(float32(v.Float())))
    	case reflect.Float64:
    		e.uint64(math.Float64bits(v.Float()))
    
    	case reflect.Complex64:
    		x := v.Complex()
    		e.uint32(math.Float32bits(float32(real(x))))
    		e.uint32(math.Float32bits(float32(imag(x))))
    	case reflect.Complex128:
    		x := v.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)
  6. src/reflect/tostring_test.go

    	case Int, Int8, Int16, Int32, Int64:
    		return strconv.FormatInt(val.Int(), 10)
    	case Uint, Uint8, Uint16, Uint32, Uint64, Uintptr:
    		return strconv.FormatUint(val.Uint(), 10)
    	case Float32, Float64:
    		return strconv.FormatFloat(val.Float(), 'g', -1, 64)
    	case Complex64, Complex128:
    		c := val.Complex()
    		return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i"
    	case String:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  7. 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)
  8. test/fixedbugs/issue7044.go

    		float64(f0), float64(f1), float64(f2), float64(f3), float64(f4), float64(f5), float64(f6), float64(f7), float64(f8), float64(f9), float64(f10), float64(f11), float64(f12), float64(f13), float64(f14), float64(f15)
    	// Use all 16 registers to do float64 --> float32 conversion.
    	g0, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10, g11, g12, g13, g14, g15 :=
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_test_util.h

    }
    
    // Return a tensor handle containing a 100x100 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle100x100(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of doubles
    TFE_TensorHandle* DoubleTestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. src/slices/sort_benchmark_test.go

    		b.Run(fmt.Sprintf("Size%d", size), func(b *testing.B) {
    			floats := make([]float64, size)
    			for i := range floats {
    				floats[i] = float64(i)
    			}
    			midpoint := len(floats) / 2
    			needle := (floats[midpoint] + floats[midpoint+1]) / 2
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				slices.BinarySearch(floats, needle)
    			}
    		})
    	}
    }
    
    type myStruct struct {
    	a, b, c, d string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top