Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 112 for octal0 (0.11 sec)

  1. src/math/big/example_test.go

    )
    
    func ExampleRat_SetString() {
    	r := new(big.Rat)
    	r.SetString("355/113")
    	fmt.Println(r.FloatString(3))
    	// Output: 3.142
    }
    
    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() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 16:15:32 UTC 2020
    - 4K bytes
    - Viewed (0)
  2. src/math/sin.go

    		y = float64(j)           // integer part of x/(Pi/4), as float
    
    		// map zeros to origin
    		if j&1 == 1 {
    			j++
    			y++
    		}
    		j &= 7                               // octant modulo 2Pi radians (360 degrees)
    		z = ((x - y*PI4A) - y*PI4B) - y*PI4C // Extended precision modular arithmetic
    	}
    
    	if j > 3 {
    		j -= 4
    		sign = !sign
    	}
    	if j > 1 {
    		sign = !sign
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  3. src/internal/xcoff/ar.go

    	Arprvmem [20]byte // Previous member pointer
    	Ardate   [12]byte // File member date
    	Aruid    [12]byte // File member uid
    	Argid    [12]byte // File member gid
    	Armode   [12]byte // File member mode (octal)
    	Arnamlen [4]byte  // File member name length
    	// _ar_nam is removed because it's easier to get name without it.
    }
    
    // Archive represents an open AIX big archive.
    type Archive struct {
    	ArchiveHeader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/go/constant/value_test.go

    	"go/token"
    	"math"
    	"math/big"
    	"strings"
    	"testing"
    )
    
    var intTests = []string{
    	// 0-octals
    	`0_123 = 0123`,
    	`0123_456 = 0123456`,
    
    	// decimals
    	`1_234 = 1234`,
    	`1_234_567 = 1234567`,
    
    	// hexadecimals
    	`0X_0 = 0`,
    	`0X_1234 = 0x1234`,
    	`0X_CAFE_f00d = 0xcafef00d`,
    
    	// octals
    	`0o0 = 0`,
    	`0o1234 = 01234`,
    	`0o01234567 = 01234567`,
    
    	`0O0 = 0`,
    	`0O1234 = 01234`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  5. src/archive/tar/strconv_test.go

    		{"\xff\x80\x00\x00\x00\x00\x00\x00\x00", math.MinInt64, true},
    		{"\xff\x7f\xff\xff\xff\xff\xff\xff\xff", 0, false},
    		{"\xf5\xec\xd1\xc7\x7e\x5f\x26\x48\x81\x9f\x8f\x9b", 0, false},
    
    		// Test base-8 (octal) encoded values.
    		{"0000000\x00", 0, true},
    		{" \x0000000\x00", 0, true},
    		{" \x0000003\x00", 3, true},
    		{"00000000227\x00", 0227, true},
    		{"032033\x00 ", 032033, true},
    		{"320330\x00 ", 0320330, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  6. src/regexp/syntax/doc.go

    	\n             newline (== \012)
    	\r             carriage return (== \015)
    	\v             vertical tab character (== \013)
    	\*             literal *, for any punctuation character *
    	\123           octal character code (up to three digits)
    	\x7F           hex character code (exactly two digits)
    	\x{10FFFF}     hex character code
    	\Q...\E        literal text ... even if ... has punctuation
    
    Character class elements:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:21:02 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/strconv/atoi_test.go

    	{"0x__12345", 0, 0, ErrSyntax},
    	{"0x1__2345", 0, 0, ErrSyntax},
    	{"0x1234__5", 0, 0, ErrSyntax},
    	{"0x12345_", 0, 0, ErrSyntax},
    
    	{"-0_1_2_3_4_5", 0, -012345, nil}, // octal
    	{"0_1_2_3_4_5", 0, 012345, nil},   // octal
    	{"-_012345", 0, 0, ErrSyntax},
    	{"_-012345", 0, 0, ErrSyntax},
    	{"_012345", 0, 0, ErrSyntax},
    	{"0__12345", 0, 0, ErrSyntax},
    	{"01234__5", 0, 0, ErrSyntax},
    	{"012345_", 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)
  8. src/net/netip/slow_test.go

    // varyingly accepted by some programs due to an under-specification
    // of the shapes of IPv4 addresses:
    //
    //   - IPv4 as a single 32-bit uint: 4660 (same as "1.2.3.4")
    //   - IPv4 with octal numbers: 0300.0250.0.01 (same as "192.168.0.1")
    //   - IPv4 with hex numbers: 0xc0.0xa8.0x0.0x1 (same as "192.168.0.1")
    //   - IPv4 in "class-B style": 1.2.52 (same as "1.2.3.4")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/text/template/parse/lex.go

    			fallthrough
    		case eof, '\n':
    			return l.errorf("unterminated character constant")
    		case '\'':
    			break Loop
    		}
    	}
    	return l.emit(itemCharConstant)
    }
    
    // lexNumber scans a number: decimal, octal, hex, float, or imaginary. This
    // isn't a perfect number scanner - for instance it accepts "." and "0x0.2"
    // and "089" - but when it's wrong the input is invalid and the parser (via
    // strconv) will notice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

      // dependencies.
      // We don’t mention the control token in the return type here, it is implicit.
      %0, %ctl0 = tf_executor.opA %feed#0, %feed#1 : tensor<*xf32>
      %1, %ctl1 = tf_executor.opB : tensor<*xf32>
      %2, %ctl2 = tf_executor.opC %1, %ctl0 : tensor<*xf32>
      %3, %ctl3 = tf_executor.opD %2 : tensor<*xf32>
      tf_executor.fetch %3 : tensor<*xf32>
    } // end of the “tf_executor.graph" operation/region
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
Back to top