Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,204 for float1 (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    	"k8s.io/apimachinery/pkg/conversion/queryparams"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    type namedString string
    type namedBool bool
    
    type bar struct {
    	Float1   float32 `json:"float1"`
    	Float2   float64 `json:"float2"`
    	Int1     int64   `json:"int1,omitempty"`
    	Int2     int32   `json:"int2,omitempty"`
    	Int3     int16   `json:"int3,omitempty"`
    	Str1     string  `json:"str1,omitempty"`
    	Ignored  int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  2. test/codegen/floats.go

    	return x, y, z
    }
    
    func indexLoad(b0 []float32, b1 float32, idx int) float32 {
    	// arm64:`FMOVS\s\(R[0-9]+\)\(R[0-9]+<<2\),\sF[0-9]+`
    	return b0[idx] * b1
    }
    
    func indexStore(b0 []float64, b1 float64, idx int) {
    	// arm64:`FMOVD\sF[0-9]+,\s\(R[0-9]+\)\(R[0-9]+<<3\)`
    	b0[idx] = b1
    }
    
    // ----------- //
    //    Fused    //
    // ----------- //
    
    func FusedAdd32(x, y, z float32) float32 {
    	// s390x:"FMADDS\t"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/math/big/float.go

    // than Float values, and each unique Float value requires
    // its own unique *Float pointer. To "copy" a Float value,
    // an existing (or newly allocated) Float must be set to
    // a new value using the [Float.Set] method; shallow copies
    // of Floats are not supported and may lead to errors.
    type Float struct {
    	prec uint32
    	mode RoundingMode
    	acc  Accuracy
    	form form
    	neg  bool
    	mant nat
    	exp  int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
       * necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Floats.java

       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
       * necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  6. test/const.go

    	// Issue #34563
    	_ = string(int(123))
    	_ = string(rune(456))
    )
    
    const (
    	f0              = 0.0
    	fm1             = -1.
    	fhuge   float64 = 1 << 100
    	fhuge_1 float64 = chuge - 1
    	f1      float64 = chuge >> 100
    	f3div2          = 3. / 2.
    	f1e3    float64 = 1e3
    )
    
    func assert(t bool, s string) {
    	if !t {
    		panic(s)
    	}
    }
    
    func ints() {
    	assert(c0 == 0, "c0")
    	assert(c1 == 1, "c1")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 23:54:29 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  7. src/runtime/float.go

    //
    // Special cases are:
    //
    //	abs(±Inf) = +Inf
    //	abs(NaN) = NaN
    func abs(x float64) float64 {
    	const sign = 1 << 63
    	return float64frombits(float64bits(x) &^ sign)
    }
    
    // copysign returns a value with the magnitude
    // of x and the sign of y.
    func copysign(x, y float64) float64 {
    	const sign = 1 << 63
    	return float64frombits(float64bits(x)&^sign | float64bits(y)&sign)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/math/big/rat_test.go

    	// r must be strictly between f0 and f1, the floats bracketing f.
    	f0 := math.Nextafter32(f, float32(math.Inf(-1)))
    	f1 := math.Nextafter32(f, float32(math.Inf(+1)))
    
    	// For f to be correct, r must be closer to f than to f0 or f1.
    	df := delta(r, float64(f))
    	df0 := delta(r, float64(f0))
    	df1 := delta(r, float64(f1))
    	if df.Cmp(df0) > 0 {
    		t.Errorf("Rat(%v).Float32() = %g (%b), but previous float32 %g (%b) is closer", r, f, f, f0, f0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  9. src/math/big/floatconv_test.go

    		{"% 030.20f", "+1e-20", " 00000000.00000000000000000001"},
    
    		// erroneous formats
    		{"%s", 1.0, "%!s(*big.Float=1)"},
    	} {
    		value := new(Float)
    		switch v := test.value.(type) {
    		case float32:
    			value.SetPrec(24).SetFloat64(float64(v))
    		case float64:
    			value.SetPrec(53).SetFloat64(v)
    		case string:
    			value.SetPrec(512).Parse(v, 0)
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 24.3K bytes
    - Viewed (0)
  10. src/strconv/atof.go

    	}
    	return f, n, err
    }
    
    // ParseFloat converts the string s to a floating-point number
    // with the precision specified by bitSize: 32 for float32, or 64 for float64.
    // When bitSize=32, the result still has type float64, but it will be
    // convertible to float32 without changing its value.
    //
    // ParseFloat accepts decimal and hexadecimal floating-point numbers
    // as defined by the Go syntax for [floating-point literals].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
Back to top