Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for octal0 (0.13 sec)

  1. src/html/template/exec_test.go

    	{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true},
    	{"BINARY", "{{print 0B101}}", "5", tVal, true},
    	{"octal0", "{{print 0377}}", "255", tVal, true},
    	{"octal", "{{print 0o377}}", "255", tVal, true},
    	{"octal _", "{{print 0o_3_7_7}}", "255", tVal, true},
    	{"OCTAL", "{{print 0O377}}", "255", tVal, true},
    	{"hex", "{{print 0x123}}", "291", tVal, true},
    	{"hex _", "{{print 0x1_23}}", "291", tVal, 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)
  2. src/text/template/exec_test.go

    	{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true},
    	{"BINARY", "{{print 0B101}}", "5", tVal, true},
    	{"octal0", "{{print 0377}}", "255", tVal, true},
    	{"octal", "{{print 0o377}}", "255", tVal, true},
    	{"octal _", "{{print 0o_3_7_7}}", "255", tVal, true},
    	{"OCTAL", "{{print 0O377}}", "255", tVal, true},
    	{"hex", "{{print 0x123}}", "291", tVal, true},
    	{"hex _", "{{print 0x1_23}}", "291", tVal, 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)
  3. src/cmd/compile/internal/syntax/scanner_test.go

    		// octals
    		{IntLit, "0o0", "0o0", ""},
    		{IntLit, "0o1234", "0o1234", ""},
    		{IntLit, "0O1234", "0O1234", ""},
    
    		{IntLit, "0o", "0o", "octal literal has no digits"},
    		{IntLit, "0o8123", "0o8123", "invalid digit '8' in octal literal"},
    		{IntLit, "0o1293", "0o1293", "invalid digit '9' in octal literal"},
    		{IntLit, "0o12a3", "0o12 a3", ""}, // only accept 0-9
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  4. src/go/scanner/scanner_test.go

    		// octals
    		{token.INT, "0o0", "0o0", ""},
    		{token.INT, "0o1234", "0o1234", ""},
    		{token.INT, "0O1234", "0O1234", ""},
    
    		{token.INT, "0o", "0o", "octal literal has no digits"},
    		{token.INT, "0o8123", "0o8123", "invalid digit '8' in octal literal"},
    		{token.INT, "0o1293", "0o1293", "invalid digit '9' in octal literal"},
    		{token.INT, "0o12a3", "0o12 a3", ""}, // only accept 0-9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue31747.go

    	_ = 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
    	_ = 0x0p1 // ERROR "hexadecimal floating-point"
    
    	_ = 1_000i // ERROR "underscore"
    	_ = 0b111i // ERROR "binary"
    	_ = 0o567i // ERROR "octal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 02:54:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/go1_12.go

    	_ = 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
    	_ = 0x0p1 // ERROR "hexadecimal floating-point"
    
    	_ = 1_000i // ERROR "underscore"
    	_ = 0b111i // ERROR "binary"
    	_ = 0o567i // ERROR "octal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 02:54:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/literals.go

    // of equal values.
    
    package literals
    
    func _() {
    	// 0-octals
    	assert(0_123 == 0123)
    	assert(0123_456 == 0123456)
    
    	// decimals
    	assert(1_234 == 1234)
    	assert(1_234_567 == 1234567)
    
    	// hexadecimals
    	assert(0X_0 == 0)
    	assert(0X_1234 == 0x1234)
    	assert(0X_CAFE_f00d == 0xcafef00d)
    
    	// octals
    	assert(0o0 == 0)
    	assert(0o1234 == 01234)
    	assert(0o01234567 == 01234567)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. src/math/big/intconv.go

    // Format implements [fmt.Formatter]. It accepts the formats
    // 'b' (binary), 'o' (octal with 0 prefix), 'O' (octal with 0o prefix),
    // 'd' (decimal), 'x' (lowercase hexadecimal), and
    // 'X' (uppercase hexadecimal).
    // Also supported are the full suite of package fmt's format
    // flags for integral types, including '+' and ' ' for sign
    // control, '#' for leading zero in octal and for hexadecimal,
    // a leading "0x" or "0X" for "%#x" and "%#X" respectively,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. src/archive/tar/strconv.go

    			return 0
    		}
    		if inv == 0xff {
    			return ^int64(x)
    		}
    		return int64(x)
    	}
    
    	// Normal case is base-8 (octal) format.
    	return p.parseOctal(b)
    }
    
    // formatNumeric encodes x into b using base-8 (octal) encoding if possible.
    // Otherwise it will attempt to use base-256 (binary) encoding.
    func (f *formatter) formatNumeric(b []byte, x int64) {
    	if fitsInOctal(len(b), x) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultConfigurableFilePermissionsTest.java

            assertInvalidUnixPermission("812", "'812' isn't a proper Unix permission. Can't be parsed as octal number.");
            assertInvalidUnixPermission("790", "'790' isn't a proper Unix permission. Can't be parsed as octal number.");
            assertInvalidUnixPermission("649", "'649' isn't a proper Unix permission. Can't be parsed as octal number.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top