Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FormatFloat (0.18 sec)

  1. logger/sql.go

    			}
    		case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
    			vars[idx] = utils.ToString(v)
    		case float32:
    			vars[idx] = strconv.FormatFloat(float64(v), 'f', -1, 32)
    		case float64:
    			vars[idx] = strconv.FormatFloat(v, 'f', -1, 64)
    		case string:
    			vars[idx] = escaper + strings.ReplaceAll(v, escaper, escaper+escaper) + escaper
    		default:
    			rv := reflect.ValueOf(v)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    			wantOK: true,
    		},
    		{
    			name: "max",
    			fields: fields{
    				value: []byte(strconv.FormatFloat(math.MaxFloat64, 'g', -1, 64)),
    			},
    			want:   math.MaxFloat64,
    			wantOK: true,
    		},
    		{
    			name: "min",
    			fields: fields{
    				value: []byte(strconv.FormatFloat(-math.MaxFloat64, 'g', -1, 64)),
    			},
    			want:   -math.MaxFloat64,
    			wantOK: true,
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. internal/s3select/sql/value.go

    		return ""
    	case bool:
    		if x {
    			return "true"
    		}
    		return "false"
    	case string:
    		return x
    	case int64:
    		return strconv.FormatInt(x, 10)
    	case float64:
    		return strconv.FormatFloat(x, 'g', -1, 64)
    	case time.Time:
    		return FormatSQLTimestamp(x)
    	case []byte:
    		return string(x)
    	case []Value:
    		b, _ := json.Marshal(x)
    		return string(b)
    
    	default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg strconv, func AppendUint([]uint8, uint64, int) []uint8
    pkg strconv, func Atoi(string) (int, error)
    pkg strconv, func CanBackquote(string) bool
    pkg strconv, func FormatBool(bool) string
    pkg strconv, func FormatFloat(float64, uint8, int, int) string
    pkg strconv, func FormatInt(int64, int) string
    pkg strconv, func FormatUint(uint64, int) string
    pkg strconv, func IsPrint(int32) bool
    pkg strconv, func Itoa(int) string
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top