Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 2i (0.04 sec)

  1. src/fmt/fmt_test.go

    	{"%.3g", 0i, "(0+0i)"},
    	{"%.3e", 1 + 2i, "(1.000e+00+2.000e+00i)"},
    	{"%.3x", 1 + 2i, "(0x1.000p+00+0x1.000p+01i)"},
    	{"%.3f", 1 + 2i, "(1.000+2.000i)"},
    	{"%.3g", 1 + 2i, "(1+2i)"},
    	{"%.3e", -1 - 2i, "(-1.000e+00-2.000e+00i)"},
    	{"%.3x", -1 - 2i, "(-0x1.000p+00-0x1.000p+01i)"},
    	{"%.3f", -1 - 2i, "(-1.000-2.000i)"},
    	{"%.3g", -1 - 2i, "(-1-2i)"},
    	{"% .3E", -1 - 2i, "(-1.000E+00-2.000E+00i)"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  2. src/internal/fmtsort/sort_test.go

    		map[float64]string{7: "bar", -3: "foo", math.NaN(): "nan", math.Inf(0): "inf"},
    		"NaN:nan -3:foo 7:bar +Inf:inf",
    	},
    	{
    		map[complex128]string{7 + 2i: "bar2", 7 + 1i: "bar", -3: "foo", complex(math.NaN(), 0i): "nan", complex(math.Inf(0), 0i): "inf"},
    		"(NaN+0i):nan (-3+0i):foo (7+1i):bar (7+2i):bar2 (+Inf+0i):inf",
    	},
    	{
    		map[bool]string{true: "true", false: "false"},
    		"false:false true:true",
    	},
    	{
    		chanMap(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/text/template/parse/parse_test.go

    	{"0X_1P4", true, true, true, false, 16, 16, 16, 0},
    	{"0x_1p-4", false, false, true, false, 0, 0, 1 / 16., 0},
    	{"4i", false, false, false, true, 0, 0, 0, 4i},
    	{"-1.2+4.2i", false, false, false, true, 0, 0, 0, -1.2 + 4.2i},
    	{"073i", false, false, false, true, 0, 0, 0, 73i}, // not octal!
    	// complex with 0 imaginary are float (and maybe integer)
    	{"0i", true, true, true, true, 0, 0, 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/text/template/exec_test.go

    type cmpTest struct {
    	expr  string
    	truth string
    	ok    bool
    }
    
    var cmpTests = []cmpTest{
    	{"eq true true", "true", true},
    	{"eq true false", "false", true},
    	{"eq 1+2i 1+2i", "true", true},
    	{"eq 1+2i 1+3i", "false", true},
    	{"eq 1.5 1.5", "true", true},
    	{"eq 1.5 2.5", "false", true},
    	{"eq 1 1", "true", true},
    	{"eq 1 2", "false", true},
    	{"eq `xy` `xy`", "true", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  5. src/html/template/exec_test.go

    type cmpTest struct {
    	expr  string
    	truth string
    	ok    bool
    }
    
    var cmpTests = []cmpTest{
    	{"eq true true", "true", true},
    	{"eq true false", "false", true},
    	{"eq 1+2i 1+2i", "true", true},
    	{"eq 1+2i 1+3i", "false", true},
    	{"eq 1.5 1.5", "true", true},
    	{"eq 1.5 2.5", "false", true},
    	{"eq 1 1", "true", true},
    	{"eq 1 2", "false", true},
    	{"eq `xy` `xy`", "true", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/builtins0.go

    		_ = cap([4]int{cap([4]int{})})
    	)
    	var y float64
    	var z complex128
    	const (
    		_ = cap([4]float64{})
    		_ = cap([4]float64{y})
    		_ = cap([4]float64{real(2i)})
    		_ = cap /* ERROR "not constant" */ ([4]float64{real(z)})
    	)
    	var ch chan [10]int
    	const (
    		_ = cap /* ERROR "not constant" */ (<-ch)
    		_ = cap /* ERROR "not constant" */ ([4]int{(<-ch)[0]})
    	)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  7. src/crypto/tls/testdata/Client-TLSv12-RenegotiateTwiceRejected

    00000320  58 ce a3 33 be 0f ca 12  54 a2 0e a9 e5 22 8f 82  |X..3....T...."..|
    00000330  df 1a 3e 21 bf 66 c6 13  39 77 83 95 b1 4b 1d d3  |..>!.f..9w...K..|
    00000340  32 69 24 c2 89 14 03 03  00 11 1c eb 63 31 c9 c9  |2i$.........c1..|
    00000350  8a e3 8b 25 7e e9 b7 7d  19 03 3c 16 03 03 00 20  |...%~..}..<.... |
    00000360  c6 41 57 04 ab e8 6c 55  0b dc cd 06 f5 b3 4b 95  |.AW...lU......K.|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    //     -1 and +1, it will be emitted as if q.Format were DecimalSI.
    //   - Otherwise, if q.Format is set to BinarySI, fractional parts of q.Amount will be
    //     rounded up. (1.1i becomes 2i.)
    func (q *Quantity) CanonicalizeBytes(out []byte) (result, suffix []byte) {
    	if q.IsZero() {
    		return zeroBytes, nil
    	}
    
    	var rounded CanonicalValue
    	format := q.Format
    	switch format {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    constant and <code>s</code> is evaluated.
    </p>
    
    <pre>
    const (
    	c1 = imag(2i)                    // imag(2i) = 2.0 is a constant
    	c2 = len([10]float64{2})         // [10]float64{2} contains no function calls
    	c3 = len([10]float64{c1})        // [10]float64{c1} contains no function calls
    	c4 = len([10]float64{imag(2i)})  // imag(2i) is a constant and no function call is issued
    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. doc/go_spec.html

    constant and <code>s</code> is evaluated.
    </p>
    
    <pre>
    const (
    	c1 = imag(2i)                    // imag(2i) = 2.0 is a constant
    	c2 = len([10]float64{2})         // [10]float64{2} contains no function calls
    	c3 = len([10]float64{c1})        // [10]float64{c1} contains no function calls
    	c4 = len([10]float64{imag(2i)})  // imag(2i) is a constant and no function call is issued
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top