Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 84 for unrepresentable (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    		amount.SetUnscaledBig(ub.Mul(ub, numericSuffix))
    	}
    
    	// Cap at min/max bounds.
    	sign := amount.Sign()
    	if sign == -1 {
    		amount.Neg(amount)
    	}
    
    	// This rounds non-zero values up to the minimum representable value, under the theory that
    	// if you want some resources, you should get some resources, even if you asked for way too small
    	// of an amount.  Arguably, this should be inf.RoundHalfUp (normal rounding), but that would have
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. src/time/time.go

    // So we'd prefer instead to print a calendar for 2001-2400 and reuse it
    // for 2401-2800.
    //
    // Finally, it's convenient if the delta between the Unix epoch and
    // long-ago epoch is representable by an int64 constant.
    //
    // These three considerations—choose an epoch as early as possible, that
    // uses a year equal to 1 mod 400, and that is no more than 2⁶³ seconds
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    		return bad("no core type")
    	case *Basic:
    		if isString(typ) {
    			return Typ[Int], universeRune, "", false, true // use 'rune' name
    		}
    		if isInteger(typ) {
    			// untyped numeric constants may be representable as integer values
    			if allowVersion != nil && !allowVersion(go1_22) {
    				return bad("requires go1.22 or later")
    			}
    			return orig, nil, "", false, true
    		}
    	case *Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/fp_test.go

    	fail32("neg", neg32_ssa, c, d, -7)
    
    	// denorm-squared should underflow to zero.
    	fail32("*", mul32_ssa, tiny, tiny, 0)
    
    	// but should not underflow in float and in fact is exactly representable.
    	fail64("*", mul64_ssa, dtiny, dtiny, 1.9636373861190906e-90)
    
    	// Intended to create register pressure which forces
    	// asymmetric op into different code paths.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/typecheck.go

    		}
    	}
    
    	return n
    }
    
    // indexlit implements typechecking of untyped values as
    // array/slice indexes. It is almost equivalent to DefaultLit
    // but also accepts untyped numeric values representable as
    // value of type int (see also checkmake for comparison).
    // The result of indexlit MUST be assigned back to n, e.g.
    //
    //	n.Left = indexlit(n.Left)
    func indexlit(n ir.Node) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/MediaType.java

       * charset} parameter will be present on the new instance regardless of the number set on this
       * one.
       *
       * <p>If a charset must be specified that is not supported on this JVM (and thus is not
       * representable as a {@link Charset} instance), use {@link #withParameter}.
       */
      public MediaType withCharset(Charset charset) {
        checkNotNull(charset);
        MediaType withCharset = withParameter(CHARSET_ATTRIBUTE, charset.name());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/MediaType.java

       * charset} parameter will be present on the new instance regardless of the number set on this
       * one.
       *
       * <p>If a charset must be specified that is not supported on this JVM (and thus is not
       * representable as a {@link Charset} instance), use {@link #withParameter}.
       */
      public MediaType withCharset(Charset charset) {
        checkNotNull(charset);
        MediaType withCharset = withParameter(CHARSET_ATTRIBUTE, charset.name());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
  8. src/fmt/scan_test.go

    		}
    	}
    }
    
    func TestScanOverflow(t *testing.T) {
    	// different machines and different types report errors with different strings.
    	re := regexp.MustCompile("overflow|too large|out of range|not representable")
    	for _, test := range overflowTests {
    		_, err := Sscan(test.text, test.in)
    		if err == nil {
    			t.Errorf("expected overflow scanning %q", test.text)
    			continue
    		}
    		if !re.MatchString(err.Error()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// See issue 36399 and 36400.
    	// Encodings of +inf, -inf, and -0 are fine.
    	{name: "Const32F", aux: "Float32"}, // value is math.Float64frombits(uint64(auxint)) and is exactly representable as float 32
    	{name: "Const64F", aux: "Float64"}, // value is math.Float64frombits(uint64(auxint))
    	{name: "ConstInterface"},           // nil interface
    	{name: "ConstSlice"},               // nil slice
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. src/encoding/gob/decode.go

    // number, and returns it. It's a helper function for float32 and complex64.
    // It returns a float64 because that's what reflection needs, but its return
    // value is known to be accurately representable in a float32.
    func float32FromBits(u uint64, ovfl error) float64 {
    	v := float64FromBits(u)
    	av := v
    	if av < 0 {
    		av = -av
    	}
    	// +Inf is OK in both 32- and 64-bit floats. Underflow is always OK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
Back to top