Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for 1e1000 (0.18 sec)

  1. test/fixedbugs/issue13559.go

    	_ int64 = 1e-1000    // ERROR "1e\-1000 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-10000   // ERROR "1e\-10000 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-100000  // ERROR "1e\-100000 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-1000000 // ERROR "1e\-1000000 truncated|.* truncated to int64|truncated"
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  2. test/convlit.go

    var x1 = string(1)
    var x2 string = string(1)
    var x3 = int(1.5)     // ERROR "convert|truncate"
    var x4 int = int(1.5) // ERROR "convert|truncate"
    var x5 = "a" + string(1)
    var x6 = int(1e100)      // ERROR "overflow|cannot convert"
    var x7 = float32(1e1000) // ERROR "overflow|cannot convert"
    
    // unsafe.Pointer can only convert to/from uintptr
    var _ = string(unsafe.Pointer(uintptr(65)))  // ERROR "convert|conversion"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  3. src/go/constant/value_test.go

    	`0 + 0.1 = 0.1`,
    	`0 + 0.1i = 0.1i`,
    	`0.1 + 0.9 = 1`,
    	`1e100 + 1e100 = 2e100`,
    	`? + 0 = ?`,
    	`0 + ? = ?`,
    
    	`0 - 0 = 0`,
    	`0 - 0.1 = -0.1`,
    	`0 - 0.1i = -0.1i`,
    	`1e100 - 1e100 = 0`,
    	`? - 0 = ?`,
    	`0 - ? = ?`,
    
    	`0 * 0 = 0`,
    	`1 * 0.1 = 0.1`,
    	`1 * 0.1i = 0.1i`,
    	`1i * 1i = -1`,
    	`? * 0 = ?`,
    	`0 * ? = ?`,
    	`0 * 1e+1000000000 = ?`,
    
    	`0 / 0 = "division_by_zero"`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

    		{
    			data:        []byte(`{"kind":"Test","apiVersion":"other/blah","interface":1e1000}`),
    			creater:     &mockCreater{obj: &testDecodable{}},
    			expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"},
    			errFn: func(err error) bool {
    				return strings.Contains(err.Error(), `json: cannot unmarshal number 1e1000 into Go struct field testDecodable.interface of type float64`)
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. src/math/big/floatconv_test.go

    		{"%.2f", 1.0, "1.00"},
    		{"%.2f", -1.0, "-1.00"},
    		{"% .2f", 1.0, " 1.00"},
    		{"% .2f", -1.0, "-1.00"},
    		{"%+.2f", 1.0, "+1.00"},
    		{"%+.2f", -1.0, "-1.00"},
    		{"%7.2f", 1.0, "   1.00"},
    		{"%7.2f", -1.0, "  -1.00"},
    		{"% 7.2f", 1.0, "   1.00"},
    		{"% 7.2f", -1.0, "  -1.00"},
    		{"%+7.2f", 1.0, "  +1.00"},
    		{"%+7.2f", -1.0, "  -1.00"},
    		{"%07.2f", 1.0, "0001.00"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 24.3K bytes
    - Viewed (0)
  6. src/encoding/json/decode_test.go

    		{CaseName: Name(""), in: "-12", i: -12, f: -12.0},
    		{CaseName: Name(""), in: "1e1000", intErr: "strconv.ParseInt: parsing \"1e1000\": invalid syntax", floatErr: "strconv.ParseFloat: parsing \"1e1000\": value out of range"},
    	}
    	for _, tt := range tests {
    		t.Run(tt.Name, func(t *testing.T) {
    			n := Number(tt.in)
    			if got := n.String(); got != tt.in {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  7. src/math/big/float_test.go

    			t.Errorf("(%s).Rat is not using supplied *Rat", f)
    		}
    	}
    }
    
    func TestFloatAbs(t *testing.T) {
    	for _, test := range []string{
    		"0",
    		"1",
    		"1234",
    		"1.23e-2",
    		"1e-1000",
    		"1e1000",
    		"Inf",
    	} {
    		p := makeFloat(test)
    		a := new(Float).Abs(p)
    		if !alike(a, p) {
    			t.Errorf("%s: got %s; want %s", test, a.Text('g', 10), test)
    		}
    
    		n := makeFloat("-" + test)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  8. src/flag/flag_test.go

    }
    
    func TestRangeError(t *testing.T) {
    	bad := []string{
    		"-int=123456789012345678901",
    		"-int64=123456789012345678901",
    		"-uint=123456789012345678901",
    		"-uint64=123456789012345678901",
    		"-float64=1e1000",
    	}
    	for _, arg := range bad {
    		fs := NewFlagSet("parse error test", ContinueOnError)
    		fs.SetOutput(io.Discard)
    		_ = fs.Int("int", 0, "")
    		_ = fs.Int64("int64", 0, "")
    		_ = fs.Uint("uint", 0, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    1.1                 int         1.1 is not an integer value
    42i                 float32     (0 + 42i) is not in the set of float32 values
    1e1000              float64     1e1000 overflows to IEEE +Inf after rounding
    </pre>
    
    
    <h2 id="Blocks">Blocks</h2>
    
    <p>
    A <i>block</i> is a possibly empty sequence of declarations and statements
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. src/internal/zstd/testdata/f2a8e35c.helloworld-11000x.zst

    f2a8e35c.helloworld-11000x.zst hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 17:57:43 UTC 2023
    - 47 bytes
    - Viewed (0)
Back to top