Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 1415926535 (0.2 sec)

  1. src/strconv/example_test.go

    }
    
    func ExampleAppendFloat() {
    	b32 := []byte("float32:")
    	b32 = strconv.AppendFloat(b32, 3.1415926535, 'E', -1, 32)
    	fmt.Println(string(b32))
    
    	b64 := []byte("float64:")
    	b64 = strconv.AppendFloat(b64, 3.1415926535, 'E', -1, 64)
    	fmt.Println(string(b64))
    
    	// Output:
    	// float32:3.1415927E+00
    	// float64:3.1415926535E+00
    }
    
    func ExampleAppendInt() {
    	b10 := []byte("int (base 10):")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 22:57:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. src/math/big/ratmarsh_test.go

    	enc := gob.NewEncoder(&medium)
    	dec := gob.NewDecoder(&medium)
    	for _, test := range encodingTests {
    		medium.Reset() // empty buffer for each test case (in case of failures)
    		var tx Rat
    		tx.SetString(test + ".14159265")
    		if err := enc.Encode(&tx); err != nil {
    			t.Errorf("encoding of %s failed: %s", &tx, err)
    			continue
    		}
    		var rx Rat
    		if err := dec.Decode(&rx); err != nil {
    			t.Errorf("decoding of %s failed: %s", &tx, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:20:16 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/go/printer/testdata/declarations.input

    	_ = .0
    	_ = 3.14159265
    	_ = 1e0
    	_ = 1e+100
    	_ = 1e-100
    	_ = 2.71828e-1000
    	_ = 0i
    	_ = 1i
    	_ = 012345678901234567889i
    	_ = 123456789012345678890i
    	_ = 0.i
    	_ = .0i
    	_ = 3.14159265i
    	_ = 1e0i
    	_ = 1e+100i
    	_ = 1e-100i
    	_ = 2.71828e-1000i
    	_ = 'a'
    	_ = '\000'
    	_ = '\xFF'
    	_ = '\uff16'
    	_ = '\U0000ff16'
    	_ = `foobar`
    	_ = `foo
    ---
    ---
    bar`
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  4. src/go/printer/testdata/declarations.golden

    	_	= .0
    	_	= 3.14159265
    	_	= 1e0
    	_	= 1e+100
    	_	= 1e-100
    	_	= 2.71828e-1000
    	_	= 0i
    	_	= 1i
    	_	= 012345678901234567889i
    	_	= 123456789012345678890i
    	_	= 0.i
    	_	= .0i
    	_	= 3.14159265i
    	_	= 1e0i
    	_	= 1e+100i
    	_	= 1e-100i
    	_	= 2.71828e-1000i
    	_	= 'a'
    	_	= '\000'
    	_	= '\xFF'
    	_	= '\uff16'
    	_	= '\U0000ff16'
    	_	= `foobar`
    	_	= `foo
    ---
    ---
    bar`
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/scanner_test.go

    	{_Literal, "0i", 0, 0},
    	{_Literal, "1i", 0, 0},
    	{_Literal, "012345678901234567889i", 0, 0},
    	{_Literal, "123456789012345678890i", 0, 0},
    	{_Literal, "0.i", 0, 0},
    	{_Literal, ".0i", 0, 0},
    	{_Literal, "3.14159265i", 0, 0},
    	{_Literal, "1e0i", 0, 0},
    	{_Literal, "1e+100i", 0, 0},
    	{_Literal, "1e-100i", 0, 0},
    	{_Literal, "2.71828e-1000i", 0, 0},
    	{_Literal, "'a'", 0, 0},
    	{_Literal, "'\\000'", 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  6. src/go/scanner/scanner_test.go

    	{token.IMAG, "1i", literal},
    	{token.IMAG, "012345678901234567889i", literal},
    	{token.IMAG, "123456789012345678890i", literal},
    	{token.IMAG, "0.i", literal},
    	{token.IMAG, ".0i", literal},
    	{token.IMAG, "3.14159265i", literal},
    	{token.IMAG, "1e0i", literal},
    	{token.IMAG, "1e+100i", literal},
    	{token.IMAG, "1e-100i", literal},
    	{token.IMAG, "2.71828e-1000i", literal},
    	{token.CHAR, "'a'", literal},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top