Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for ErrRange (0.45 sec)

  1. src/strconv/atoc_test.go

    		// a little too large
    		{"1e308+1e308i", 1e+308 + 1e+308i, nil},
    		{"2e308+2e308i", infpp, ErrRange},
    		{"1e309+1e309i", infpp, ErrRange},
    		{"0x1p1025+0x1p1025i", infpp, ErrRange},
    		{"2e308", infp0, ErrRange},
    		{"1e309", infp0, ErrRange},
    		{"0x1p1025", infp0, ErrRange},
    		{"2e308i", inf0p, ErrRange},
    		{"1e309i", inf0p, ErrRange},
    		{"0x1p1025i", inf0p, ErrRange},
    		// way too large
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 23:05:51 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  2. src/strconv/atof_test.go

    	{"2e308", "+Inf", ErrRange},
    	{"1e309", "+Inf", ErrRange},
    	{"0x1p1025", "+Inf", ErrRange},
    
    	// way too large
    	{"1e310", "+Inf", ErrRange},
    	{"-1e310", "-Inf", ErrRange},
    	{"1e400", "+Inf", ErrRange},
    	{"-1e400", "-Inf", ErrRange},
    	{"1e400000", "+Inf", ErrRange},
    	{"-1e400000", "-Inf", ErrRange},
    	{"0x1p1030", "+Inf", ErrRange},
    	{"0x1p2000", "+Inf", ErrRange},
    	{"0x1p2000000000", "+Inf", ErrRange},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 23.6K bytes
    - Viewed (0)
  3. src/strconv/atoi_test.go

    	{"18446744073709551616", 0, 1<<64 - 1, ErrRange},
    	{"18446744073709551620", 0, 1<<64 - 1, ErrRange},
    	{"0xFFFFFFFFFFFFFFFF", 0, 1<<64 - 1, nil},
    	{"0x10000000000000000", 0, 1<<64 - 1, ErrRange},
    	{"01777777777777777777777", 0, 1<<64 - 1, nil},
    	{"01777777777777777777778", 0, 0, ErrSyntax},
    	{"02000000000000000000000", 0, 1<<64 - 1, ErrRange},
    	{"0200000000000000000000", 0, 1 << 61, nil},
    	{"0b", 0, 0, ErrSyntax},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. src/strconv/atoi.go

    // Note that lower of non-letters can produce other non-letters.
    func lower(c byte) byte {
    	return c | ('x' - 'X')
    }
    
    // ErrRange indicates that a value is out of range for the target type.
    var ErrRange = errors.New("value out of range")
    
    // ErrSyntax indicates that a value does not have the right syntax for the target type.
    var ErrSyntax = errors.New("invalid syntax")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/strconv/atoc.go

    // into a syntax or range error for ParseComplex.
    func convErr(err error, s string) (syntax, range_ error) {
    	if x, ok := err.(*NumError); ok {
    		x.Func = fnParseComplex
    		x.Num = stringslite.Clone(s)
    		if x.Err == ErrRange {
    			return nil, x
    		}
    	}
    	return err, nil
    }
    
    // ParseComplex converts the string s to a complex number
    // with the precision specified by bitSize: 64 for complex64, or 128 for complex128.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/flag/flag.go

    // It then gets wrapped through failf to provide more information.
    var errParse = errors.New("parse error")
    
    // errRange is returned by Set if a flag's value is out of range.
    // It then gets wrapped through failf to provide more information.
    var errRange = errors.New("value out of range")
    
    func numError(err error) error {
    	ne, ok := err.(*strconv.NumError)
    	if !ok {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  7. src/encoding/gob/decode.go

    	"internal/saferio"
    	"io"
    	"math"
    	"math/bits"
    	"reflect"
    )
    
    var (
    	errBadUint = errors.New("gob: encoded unsigned integer out of range")
    	errBadType = errors.New("gob: unknown type id or corrupted data")
    	errRange   = errors.New("gob: bad data: field numbers out of bounds")
    )
    
    type decHelper func(state *decoderState, v reflect.Value, length int, ovfl error) bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  8. src/math/big/int_test.go

    			t.Errorf("SetString(%s, 0) failed", s)
    			continue
    		}
    
    		want, err := strconv.ParseUint(s, 0, 64)
    		if err != nil {
    			// check for sign explicitly (ErrRange doesn't cover signed input)
    			if s[0] == '-' || err.(*strconv.NumError).Err == strconv.ErrRange {
    				if x.IsUint64() {
    					t.Errorf("IsUint64(%s) succeeded unexpectedly", s)
    				}
    			} else {
    				t.Errorf("ParseUint(%s) failed", s)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  9. src/strconv/atof.go

    //
    // If s is syntactically well-formed but is more than 1/2 ULP
    // away from the largest floating point number of the given size,
    // ParseFloat returns f = ±Inf, err.Err = ErrRange.
    //
    // ParseFloat recognizes the string "NaN", and the (possibly signed) strings "Inf" and "Infinity"
    // as their respective special floating point values. It ignores case when matching.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    			}
    			// Add more other SDK related errors here if any in future.
    		default:
    			//nolint:gocritic
    			if errors.Is(err, errMalformedEncoding) || errors.Is(err, errChunkTooBig) || errors.Is(err, strconv.ErrRange) {
    				apiErr = APIError{
    					Code:           "BadRequest",
    					Description:    err.Error(),
    					HTTPStatusCode: http.StatusBadRequest,
    				}
    			} else {
    				apiErr = APIError{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top