Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,204 for float1 (0.13 sec)

  1. src/database/sql/convert.go

    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return strconv.FormatUint(rv.Uint(), 10)
    	case reflect.Float64:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 64)
    	case reflect.Float32:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 32)
    	case reflect.Bool:
    		return strconv.FormatBool(rv.Bool())
    	}
    	return fmt.Sprintf("%v", src)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. 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)
  3. src/reflect/value.go

    }
    
    // CanFloat reports whether [Value.Float] can be used without panicking.
    func (v Value) CanFloat() bool {
    	switch v.kind() {
    	case Float32, Float64:
    		return true
    	default:
    		return false
    	}
    }
    
    // Float returns v's underlying value, as a float64.
    // It panics if v's Kind is not [Float32] or [Float64]
    func (v Value) Float() float64 {
    	k := v.kind()
    	switch k {
    	case Float32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

        "'h_scale' type: 'float'} attr : { name: 'max_classes_per_detection' "
        "type: 'int'} attr : { name: 'max_detections' type: 'int'} attr : { "
        "name: 'nms_iou_threshold' type: 'float'} attr : { name: "
        "'nms_score_threshold' type: 'float'} attr : { name: 'num_classes' type: "
        "'int'} attr : { name: 'w_scale' type: 'float'} attr : { name: 'x_scale' "
        "type: 'float'} attr : { name: 'y_scale' type: 'float'} attr { name: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. src/database/sql/convert_test.go

    		{s: 2, d: &scanbool, wanterr: `sql/driver: couldn't convert 2 into type bool`},
    
    		// Floats
    		{s: float64(1.5), d: &scanf64, wantf64: float64(1.5)},
    		{s: int64(1), d: &scanf64, wantf64: float64(1)},
    		{s: float64(1.5), d: &scanf32, wantf32: float32(1.5)},
    		{s: "1.5", d: &scanf32, wantf32: float32(1.5)},
    		{s: "1.5", d: &scanf64, wantf64: float64(1.5)},
    
    		// Pointers
    		{s: any(nil), d: &scanptr, wantnil: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. src/text/scanner/scanner_test.go

    	{Int, "0X" + f100},
    
    	{Comment, "// floats"},
    	{Float, "0."},
    	{Float, "1."},
    	{Float, "42."},
    	{Float, "01234567890."},
    	{Float, ".0"},
    	{Float, ".1"},
    	{Float, ".42"},
    	{Float, ".0123456789"},
    	{Float, "0.0"},
    	{Float, "1.0"},
    	{Float, "42.0"},
    	{Float, "01234567890.0"},
    	{Float, "0e0"},
    	{Float, "1e0"},
    	{Float, "42e0"},
    	{Float, "01234567890e0"},
    	{Float, "0E0"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue11945.go

    	_ int = real(2.0)
    	_ int = real(3i)
    
    	_ float32 = real(1)
    	_ float32 = real('a')
    	_ float32 = real(2.1)
    	_ float32 = real(3.2i)
    
    	_ float64 = real(1)
    	_ float64 = real('a')
    	_ float64 = real(2.1)
    	_ float64 = real(3.2i)
    
    	_ int = imag(1)
    	_ int = imag('a')
    	_ int = imag(2.1 + 3i)
    	_ int = imag(3i)
    
    	_ float32 = imag(1)
    	_ float32 = imag('a')
    	_ float32 = imag(2.1 + 3.1i)
    	_ float32 = imag(3i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 26 01:50:30 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. test/fixedbugs/issue9036.go

    // license that can be found in the LICENSE file.
    
    // Expects to see error messages on 'p' exponents
    // for non-hexadecimal floats.
    
    package main
    
    import "fmt"
    
    const (
    	x1 = 1.1    // float
    	x2 = 1e10   // float
    	x3 = 0x1e10 // integer (e is a hex digit)
    )
    
    const x4 = 0x1p10 // valid hexadecimal float
    const x5 = 1p10   // ERROR "'p' exponent requires hexadecimal mantissa|invalid prefix"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 10 18:34:40 UTC 2020
    - 805 bytes
    - Viewed (0)
  9. src/math/rand/v2/regress_test.go

    	float32(0.45059562),  // Float32()
    	float32(0.86597633),  // Float32()
    	float32(0.8954844),   // Float32()
    	float32(0.090798736), // Float32()
    	float32(0.46218646),  // Float32()
    	float32(0.5955118),   // Float32()
    	float32(0.08985227),  // Float32()
    	float32(0.19820237),  // Float32()
    	float32(0.7443699),   // Float32()
    	float32(0.56461),     // Float32()
    
    	float64(0.6764556596678251),  // Float64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. test/float_lit3.go

    	max64 = two1024 - ulp64
    )
    
    var x = []interface{}{
    	float32(max32 + ulp32/2 - 1),             // ok
    	float32(max32 + ulp32/2 - two128/two256), // ok
    	float32(max32 + ulp32/2),                 // ERROR "constant 3\.40282e\+38 overflows float32|cannot convert.*to type float32"
    
    	float32(-max32 - ulp32/2 + 1),             // ok
    	float32(-max32 - ulp32/2 + two128/two256), // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 16:24:32 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top