- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 36 for isMnt (0.06 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
} if b == types.True { return types.True } } if err != nil { return err } return types.False } func (t *unstructuredList) Get(idx ref.Val) ref.Val { iv, isInt := idx.(types.Int) if !isInt { return types.ValOrErr(idx, "unsupported index: %v", idx) } i := int(iv) if i < 0 || i >= len(t.elements) { return types.NewErr("index out of bounds: %v", idx) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
src/go/constant/value.go
// proceed if f doesn't underflow to 0 or overflow to inf. if x, _ := f.Float64(); f.Sign() == 0 == (x == 0) && !math.IsInf(x, 0) { s := fmt.Sprintf("%.6g", x) if !f.IsInt() && strings.IndexByte(s, '.') < 0 { // f is not an integer, but its string representation // doesn't reflect that. Use more digits. See issue 56220. s = fmt.Sprintf("%g", x) } return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/math/big/float.go
func (x *Float) Signbit() bool { return x.neg } // IsInf reports whether x is +Inf or -Inf. func (x *Float) IsInf() bool { return x.form == inf } // IsInt reports whether x is an integer. // ±Inf values are not integers. func (x *Float) IsInt() bool { if debugFloat { x.validate() } // special cases if x.form != finite { return x.form == zero } // x.form == finite if x.exp <= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/const.go
// (See issue #11371). f := ir.BigFloat(v) if f.MantExp(nil) > 2*ir.ConstPrec { base.Errorf("integer too large") } else { var t big.Float t.Parse(fmt.Sprint(v), 0) if t.IsInt() { base.Errorf("constant truncated to integer") } else { base.Errorf("constant %v truncated to integer", v) } } // Prevent follow-on errors. return constant.MakeUnknown() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 10.5K bytes - Viewed (0) -
src/text/template/exec.go
case constant.IsFloat && !isHexInt(constant.Text) && !isRuneInt(constant.Text) && strings.ContainsAny(constant.Text, ".eEpP"): return reflect.ValueOf(constant.Float64) case constant.IsInt: n := int(constant.Int64) if int64(n) != constant.Int64 { s.errorf("%s overflows int", constant.Text) } return reflect.ValueOf(n) case constant.IsUint:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
if v1 == nil && v2 != nil { base.Fatalf("walkRange: v2 != nil while v1 == nil") } var body []ir.Node var init []ir.Node switch k := t.Kind(); { default: base.Fatalf("walkRange") case types.IsInt[k]: hv1 := typecheck.TempAt(base.Pos, ir.CurFunc, t) hn := typecheck.TempAt(base.Pos, ir.CurFunc, t) init = append(init, ir.NewAssignStmt(base.Pos, hv1, nil)) init = append(init, ir.NewAssignStmt(base.Pos, hn, a))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/math/big/float_test.go
"0.000000001e+9 int", "1.2345e200 int", "Inf", "+Inf", "-Inf", } { s := strings.TrimSuffix(test, " int") want := s != test if got := makeFloat(s).IsInt(); got != want { t.Errorf("%s.IsInt() == %t", s, got) } } } func fromBinary(s string) int64 { x, err := strconv.ParseInt(s, 2, 64) if err != nil { panic(err) } return x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
n.X = o.expr(n.X, nil) orderBody := true xt := typecheck.RangeExprType(n.X.Type()) switch k := xt.Kind(); { default: base.Fatalf("order.stmt range %v", n.Type()) case types.IsInt[k]: // Used only once, no need to copy. case k == types.TARRAY, k == types.TSLICE: if n.Value == nil || ir.IsBlank(n.Value) { // for i := range x will only use x once, to compute len(x).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
t.SetHasShape(true) } for _, f := range fields { if f.Type.NotInHeap() { t.SetNotInHeap(true) break } } return t } var ( IsInt [NTYPE]bool IsFloat [NTYPE]bool IsComplex [NTYPE]bool IsSimple [NTYPE]bool ) var IsOrdered [NTYPE]bool // IsReflexive reports whether t has a reflexive equality operator.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*Float).GobDecode", Method, 7}, {"(*Float).GobEncode", Method, 7}, {"(*Float).Int", Method, 5}, {"(*Float).Int64", Method, 5}, {"(*Float).IsInf", Method, 5}, {"(*Float).IsInt", Method, 5}, {"(*Float).MantExp", Method, 5}, {"(*Float).MarshalText", Method, 6}, {"(*Float).MinPrec", Method, 5}, {"(*Float).Mode", Method, 5}, {"(*Float).Mul", Method, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)