Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,075 for satconv (0.13 sec)

  1. src/reflect/tostring_test.go

    		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:
    		return val.String()
    	case Bool:
    		if val.Bool() {
    			return "true"
    		} else {
    			return "false"
    		}
    	case Pointer:
    		v := val
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. test/fixedbugs/bug120.go

    		t := tests[i]
    		v := strconv.FormatFloat(t.f, 'g', -1, 64)
    		if v != t.out {
    			println("Bad float64 const:", t.in, "want", t.out, "got", v)
    			x, err := strconv.ParseFloat(t.out, 64)
    			if err != nil {
    				println("bug120: strconv.Atof64", t.out)
    				panic("fail")
    			}
    			println("\twant exact:", strconv.FormatFloat(x, 'g', 1000, 64))
    			println("\tgot exact: ", strconv.FormatFloat(t.f, 'g', 1000, 64))
    			ok = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/testdata/hist.gdb-dbg.nexts

    74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    75:			s := scanner.Text()
    76:			i, err := strconv.ParseInt(s, 10, 64)
    77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    i = 1
    81:			hist = ensure(int(i), hist)
    82:			hist[int(i)]++
    74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    75:			s := scanner.Text()
    76:			i, err := strconv.ParseInt(s, 10, 64)
    77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    i = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 04 20:41:52 UTC 2019
    - 4K bytes
    - Viewed (0)
  4. src/internal/fuzz/encoding.go

    		i, err := strconv.ParseInt(val, 0, 64)
    		return int(i), err
    	case "int8":
    		i, err := strconv.ParseInt(val, 0, 8)
    		return int8(i), err
    	case "int16":
    		i, err := strconv.ParseInt(val, 0, 16)
    		return int16(i), err
    	case "int32", "rune":
    		i, err := strconv.ParseInt(val, 0, 32)
    		return int32(i), err
    	case "int64":
    		return strconv.ParseInt(val, 0, 64)
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  5. 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()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. src/log/slog/internal/benchmarks/handlers.go

    		buf.WriteString(v.String())
    	case slog.KindInt64:
    		*buf = strconv.AppendInt(*buf, v.Int64(), 10)
    	case slog.KindUint64:
    		*buf = strconv.AppendUint(*buf, v.Uint64(), 10)
    	case slog.KindFloat64:
    		*buf = strconv.AppendFloat(*buf, v.Float64(), 'g', -1, 64)
    	case slog.KindBool:
    		*buf = strconv.AppendBool(*buf, v.Bool())
    	case slog.KindDuration:
    		*buf = strconv.AppendInt(*buf, v.Duration().Nanoseconds(), 10)
    	case slog.KindTime:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. internal/s3select/sql/value_test.go

    			// Seems to be what strconv.ParseInt returns
    			want:   math.Inf(1),
    			wantOK: false,
    		},
    		{
    			name: "min-underflow",
    			fields: fields{
    				value: []byte("-1.797693134862315708145274237317043567981e+309"),
    			},
    			// Seems to be what strconv.ParseInt returns
    			want:   math.Inf(-1),
    			wantOK: false,
    		},
    		{
    			name: "smallest-pos",
    			fields: fields{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.KafkaQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    		config.KV{
    			Key:   target.KafkaTLS,
    			Value: config.FormatBool(cfg.TLS.Enable),
    		},
    		config.KV{
    			Key:   target.KafkaTLSSkipVerify,
    			Value: config.FormatBool(cfg.TLS.SkipVerify),
    		},
    		config.KV{
    			Key:   target.KafkaTLSClientAuth,
    			Value: strconv.Itoa(int(cfg.TLS.ClientAuth)),
    		},
    		config.KV{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 19 04:37:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. cmd/api-resources.go

    package cmd
    
    import (
    	"encoding/base64"
    	"net/url"
    	"strconv"
    )
    
    // Parse bucket url queries
    func getListObjectsV1Args(values url.Values) (prefix, marker, delimiter string, maxkeys int, encodingType string, errCode APIErrorCode) {
    	errCode = ErrNone
    
    	if values.Get("max-keys") != "" {
    		var err error
    		if maxkeys, err = strconv.Atoi(values.Get("max-keys")); err != nil {
    			errCode = ErrInvalidMaxKeys
    			return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 07 18:25:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/internal/trace/raw/event.go

    		s.WriteString(spec.Args[i])
    		s.WriteString("=")
    		s.WriteString(strconv.FormatUint(e.Args[i], 10))
    	}
    	if spec.IsStack {
    		frames := e.Args[len(spec.Args):]
    		for i := 0; i < len(frames); i++ {
    			if i%4 == 0 {
    				s.WriteString("\n\t")
    			} else {
    				s.WriteString(" ")
    			}
    			s.WriteString(frameFields[i%4])
    			s.WriteString("=")
    			s.WriteString(strconv.FormatUint(frames[i], 10))
    		}
    	}
    	if e.Data != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top