Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for 0o (0.21 sec)

  1. test/fixedbugs/issue31747.go

    const (
    	_ = 1_000 // ERROR "underscore in numeric literal requires go1.13 or later \(-lang was set to go1.12; check go.mod\)|requires go1.13"
    	_ = 0b111 // ERROR "binary literal requires go1.13 or later"
    	_ = 0o567 // ERROR "0o/0O-style octal literal requires go1.13 or later"
    	_ = 0xabc // ok
    	_ = 0x0p1 // ERROR "hexadecimal floating-point literal requires go1.13 or later"
    
    	_ = 0b111 // ERROR "binary"
    	_ = 0o567 // ERROR "octal"
    	_ = 0xabc // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 02:54:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/go1_12.go

    package p
    
    // numeric literals
    const (
    	_ = 1_000 // ERROR "underscore in numeric literal requires go1.13 or later"
    	_ = 0b111 // ERROR "binary literal requires go1.13 or later"
    	_ = 0o567 // ERROR "0o/0O-style octal literal requires go1.13 or later"
    	_ = 0xabc // ok
    	_ = 0x0p1 // ERROR "hexadecimal floating-point literal requires go1.13 or later"
    
    	_ = 0b111 // ERROR "binary"
    	_ = 0o567 // ERROR "octal"
    	_ = 0xabc // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 02:54:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/math/big/intconv.go

    //
    // The base argument must be 0 or a value from 2 through MaxBase. If the base
    // is 0, the string prefix determines the actual conversion base. A prefix of
    // “0b” or “0B” selects base 2; a “0”, “0o”, or “0O” prefix selects
    // base 8, and a “0x” or “0X” prefix selects base 16. Otherwise the selected
    // base is 10.
    func (z *Int) scan(r io.ByteScanner, base int) (*Int, int, error) {
    	// determine sign
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. test/fixedbugs/issue30722.go

    package p
    
    const (
    	_ = 1_       // ERROR "'_' must separate successive digits"
    	_ = 0b       // ERROR "binary literal has no digits|invalid numeric literal"
    	_ = 0o       // ERROR "octal literal has no digits|invalid numeric literal"
    	_ = 0x       // ERROR "hexadecimal literal has no digits|invalid numeric literal"
    	_ = 0xde__ad // ERROR "'_' must separate successive digits"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 623 bytes
    - Viewed (0)
  5. test/literal2.go

    // license that can be found in the LICENSE file.
    
    // Test Go2 literal syntax for basic types.
    // Avoid running gofmt on this file to preserve the
    // test cases with upper-case prefixes (0B, 0O, 0X).
    
    package main
    
    import "fmt"
    
    func assert(cond bool) {
    	if !cond {
    		panic("assertion failed")
    	}
    }
    
    func equal(x, y interface{}) bool {
    	if x != y {
    		fmt.Printf("%g != %g\n", x, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 22:45:09 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  6. src/math/big/floatconv.go

    // The base argument must be 0, 2, 8, 10, or 16. Providing an invalid base
    // argument will lead to a run-time panic.
    //
    // For base 0, the number prefix determines the actual base: A prefix of
    // “0b” or “0B” selects base 2, “0o” or “0O” selects base 8, and
    // “0x” or “0X” selects base 16. Otherwise, the actual base is 10 and
    // no prefix is accepted. The octal prefix "0" is not supported (a leading
    // "0" is simply considered a "0").
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/strconv/atoi.go

    //
    // The string may begin with a leading sign: "+" or "-".
    //
    // If the base argument is 0, the true base is implied by the string's
    // prefix following the sign (if present): 2 for "0b", 8 for "0" or "0o",
    // 16 for "0x", and 10 otherwise. Also, for argument base 0 only,
    // underscore characters are permitted as defined by the Go syntax for
    // [integer literals].
    //
    // The bitSize argument specifies the integer type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. src/crypto/tls/testdata/Server-TLSv13-ClientAuthRequestedNotGiven

    00000330  a6 7b 2c 92 7f db 58 c8  fa f9 2d 6b 00 25 dc 0a  |.{,...X...-k.%..|
    00000340  aa 13 e8 40 f3 fd 47 23  f6 bf 1c 30 fc 91 18 95  |...@..G#...0....|
    00000350  ac a8 82 3d f5 ef 17 03  03 00 99 7e 30 4f f1 00  |...=.......~0O..|
    00000360  1e dd eb c6 54 d2 f5 f7  21 aa 6b b0 83 0c fa 8b  |....T...!.k.....|
    00000370  12 af ac 15 3e 54 b6 1c  85 9b 0c 80 02 d8 e3 5f  |....>T........._|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:14:50 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top