Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for 314159 (0.12 sec)

  1. test/literal.go

    	var u31 uint64 = 1
    	var u32 uint64 = 18446744073709551615
    	var u33 uint64 = +18446744073709551615
    	_, _, _, _ = u30, u31, u32, u33
    
    	// float
    	var f00 float32 = 3.14159
    	var f01 float32 = -3.14159
    	var f02 float32 = +3.14159
    	var f03 float32 = 0.0
    	var f04 float32 = .0
    	var f05 float32 = 0.
    	var f06 float32 = -0.0
    	var f07 float32 = 1e10
    	var f08 float32 = -1e10
    	var f09 float32 = 1e-10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  2. src/math/big/example_test.go

    func ExampleInt_SetString() {
    	i := new(big.Int)
    	i.SetString("644", 8) // octal
    	fmt.Println(i)
    	// Output: 420
    }
    
    func ExampleFloat_SetString() {
    	f := new(big.Float)
    	f.SetString("3.14159")
    	fmt.Println(f)
    	// Output: 3.14159
    }
    
    func ExampleRat_Scan() {
    	// The Scan function is rarely used directly;
    	// the fmt package recognizes it as an implementation of fmt.Scanner.
    	r := new(big.Rat)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 16:15:32 UTC 2020
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go

    			labelSelector:   "",
    			fieldSelector:   "",
    			namespace:       metav1.NamespaceAll,
    		}, {
    			path:            rootPath,
    			rawQuery:        "resourceVersion=314159&fieldSelector=Host%3D&labelSelector=name%3Dfoo",
    			resourceVersion: "314159",
    			labelSelector:   "name=foo",
    			fieldSelector:   "Host=",
    			namespace:       metav1.NamespaceAll,
    		}, {
    			path:            rootPath,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 17:27:39 UTC 2023
    - 30K bytes
    - Viewed (0)
  4. src/encoding/gob/codec_test.go

    		N        *[3]float64
    		Strs     *[2]string
    		Int64s   *[]int64
    		RI       complex64
    		S        string
    		Y        []byte
    		T        *T2
    	}
    	pi := 3.14159
    	e := 2.71828
    	two := 2.0
    	meaning := 42
    	fingers := 5
    	s1 := "string1"
    	s2 := "string2"
    	var comp1 complex128 = complex(1.0, 1.0)
    	var comp2 complex128 = complex(1.0, 1.0)
    	var arr1 [2]string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  5. pkg/slices/slices_test.go

    	}{
    		{
    			name:  "Empty",
    			slice: []interface{}{},
    		},
    		{
    			name:  "Single Element",
    			slice: []interface{}{1},
    		},
    		{
    			name:  "Multiple Elements",
    			slice: []interface{}{1, "a", 3.14159},
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			clone := Clone(tt.slice)
    			if !reflect.DeepEqual(clone, tt.slice) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

       */
      static void assertInvariants(HashFunction hashFunction) {
        int objects = 100;
        Set<HashCode> hashcodes = Sets.newHashSetWithExpectedSize(objects);
        Random random = new Random(314159);
        for (int i = 0; i < objects; i++) {
          int value = random.nextInt();
          HashCode hashcode1 = hashFunction.hashInt(value);
          HashCode hashcode2 = hashFunction.hashInt(value);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  7. src/slices/slices_test.go

    		t.Errorf("cap(Clip(%v)) = %d, want 3", orig, cap(s2))
    	}
    }
    
    func TestReverse(t *testing.T) {
    	even := []int{3, 1, 4, 1, 5, 9} // len = 6
    	Reverse(even)
    	if want := []int{9, 5, 1, 4, 1, 3}; !Equal(even, want) {
    		t.Errorf("Reverse(even) = %v, want %v", even, want)
    	}
    
    	odd := []int{3, 1, 4, 1, 5, 9, 2} // len = 7
    	Reverse(odd)
    	if want := []int{2, 9, 5, 1, 4, 1, 3}; !Equal(odd, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/test.go

    // the builtin one.
    int vabs(int x) { return __absvsi2(x); }
    #endif
    
    
    // issue 3729
    // access errno from void C function
    const char _expA = 0x42;
    const float _expB = 3.14159;
    const short _expC = 0x55aa;
    const int _expD = 0xdeadbeef;
    
    #ifdef WIN32
    void g(void) {}
    void g2(int x, char a, float b, short c, int d) {}
    #else
    
    void g(void) {
    	errno = E2BIG;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  9. src/strconv/doc.go

    //	...
    //	i := int32(i64)
    //
    // [FormatBool], [FormatFloat], [FormatInt], and [FormatUint] convert values to strings:
    //
    //	s := strconv.FormatBool(true)
    //	s := strconv.FormatFloat(3.1415, 'E', -1, 64)
    //	s := strconv.FormatInt(-42, 16)
    //	s := strconv.FormatUint(42, 16)
    //
    // [AppendBool], [AppendFloat], [AppendInt], and [AppendUint] are similar but
    // append the formatted value to a destination slice.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. test/fixedbugs/bug154.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    func f0() string {
    	const f = 3.141592;
    	return fmt.Sprintf("%v", float64(f));
    }
    
    
    func f1() string {
    	const f = 3.141592;
    	x := float64(float32(f));  // appears to change the precision of f
    	_ = x;
    	return fmt.Sprintf("%v", float64(f));
    }
    
    
    func main() {
    	r0 := f0();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 585 bytes
    - Viewed (0)
Back to top