Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for octal0 (0.17 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/text/scanner/scanner_test.go

    		{Float, "0b1P-1", "0b1P-1", "'P' exponent requires hexadecimal mantissa"},
    
    		// octals
    		{Int, "0o0", "0o0", ""},
    		{Int, "0o1234", "0o1234", ""},
    		{Int, "0O1234", "0O1234", ""},
    
    		{Int, "0o", "0o", "octal literal has no digits"},
    		{Int, "0o8123", "0o8123", "invalid digit '8' in octal literal"},
    		{Int, "0o1293", "0o1293", "invalid digit '9' in octal literal"},
    		{Int, "0o12a3", "0o12 a3", ""}, // only accept 0-9
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/go/printer/testdata/go2numbers.norm

    package p
    
    const (
    	// 0-octals
    	_	= 0
    	_	= 0123
    	_	= 0123456
    
    	_	= 0_123
    	_	= 0123_456
    
    	// decimals
    	_	= 1
    	_	= 1234
    	_	= 1234567
    
    	_	= 1_234
    	_	= 1_234_567
    
    	// hexadecimals
    	_	= 0x0
    	_	= 0x1234
    	_	= 0xcafef00d
    
    	_	= 0x0
    	_	= 0x1234
    	_	= 0xCAFEf00d
    
    	_	= 0x_0
    	_	= 0x_1234
    	_	= 0x_CAFE_f00d
    
    	// octals
    	_	= 0o0
    	_	= 0o1234
    	_	= 0o01234567
    
    	_	= 0o0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 17 02:15:01 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/gofmt/testdata/go2numbers.golden

    package p
    
    const (
    	// 0-octals
    	_ = 0
    	_ = 0123
    	_ = 0123456
    
    	_ = 0_123
    	_ = 0123_456
    
    	// decimals
    	_ = 1
    	_ = 1234
    	_ = 1234567
    
    	_ = 1_234
    	_ = 1_234_567
    
    	// hexadecimals
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xcafef00d
    
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xCAFEf00d
    
    	_ = 0x_0
    	_ = 0x_1234
    	_ = 0x_CAFE_f00d
    
    	// octals
    	_ = 0o0
    	_ = 0o1234
    	_ = 0o01234567
    
    	_ = 0o0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/gofmt/testdata/go2numbers.input

    package p
    
    const (
    	// 0-octals
    	_ = 0
    	_ = 0123
    	_ = 0123456
    
    	_ = 0_123
    	_ = 0123_456
    
    	// decimals
    	_ = 1
    	_ = 1234
    	_ = 1234567
    
    	_ = 1_234
    	_ = 1_234_567
    
    	// hexadecimals
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xcafef00d
    
    	_ = 0X0
    	_ = 0X1234
    	_ = 0XCAFEf00d
    
    	_ = 0X_0
    	_ = 0X_1234
    	_ = 0X_CAFE_f00d
    
    	// octals
    	_ = 0o0
    	_ = 0o1234
    	_ = 0o01234567
    
    	_ = 0O0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 2K bytes
    - Viewed (0)
Back to top