Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for eirf (0.17 sec)

  1. internal/s3select/sql/funceval.go

    	// integer.
    	strToInt := func(s string) (int64, bool) {
    		i, errI := strconv.ParseInt(s, 10, 64)
    		if errI == nil {
    			return i, true
    		}
    		f, errF := strconv.ParseFloat(s, 64)
    		if errF == nil {
    			return int64(f), true
    		}
    		return 0, false
    	}
    
    	switch x := v.value.(type) {
    	case float64:
    		// Truncate fractional part
    		return int64(x), nil
    	case int64:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
Back to top