Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 0B0 (0.16 sec)

  1. src/internal/types/testdata/check/literals.go

    	assert(0o_1234 == 01234)
    	assert(0o0123_4567 == 01234567)
    
    	assert(0O_0 == 0)
    	assert(0O_1234 == 01234)
    	assert(0O0123_4567 == 01234567)
    
    	// binaries
    	assert(0b0 == 0)
    	assert(0b1011 == 0xb)
    	assert(0b00101101 == 0x2d)
    
    	assert(0B0 == 0)
    	assert(0B1011 == 0xb)
    	assert(0B00101101 == 0x2d)
    
    	assert(0b_0 == 0)
    	assert(0b10_11 == 0xb)
    	assert(0b_0010_1101 == 0x2d)
    
    	// decimal floats
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/CombinatorsTest.kt

            assertSuccess(parser("0X0"))
            assertSuccess(parser("0Xff_ee"))
            assertSuccess(parser("0Xabc_e"))
    
            // binary numbers
            assertSuccess(parser("0b0"))
            assertSuccess(parser("0B0"))
            assertSuccess(parser("0b101010"))
            assertSuccess(parser("0b10101_0"))
    
            assertFailure(
                parser("bar"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/reflect/abi.go

    	case Bool, Int, Uint, Int8, Uint8, Int16, Uint16, Int32, Uint32, Uintptr:
    		return a.assignIntN(offset, t.Size(), 1, 0b0)
    	case Int64, Uint64:
    		switch goarch.PtrSize {
    		case 4:
    			return a.assignIntN(offset, 4, 2, 0b0)
    		case 8:
    			return a.assignIntN(offset, 8, 1, 0b0)
    		}
    	case Float32, Float64:
    		return a.assignFloatN(offset, t.Size(), 1)
    	case Complex64:
    		return a.assignFloatN(offset, 4, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/math/big/floatconv_test.go

    		{"1p10", 1 << 10},
    		{"1p+10", 1 << 10},
    		{"+1p-10", 1.0 / (1 << 10)},
    		{"1024p-12", 0.25},
    		{"-1p10", -1024},
    		{"1.5p1", 3},
    
    		// binary mantissa, decimal exponent
    		{"0b0", 0},
    		{"-0b0", -zero_},
    		{"0b0e+10", 0},
    		{"-0b0e-10", -zero_},
    		{"0b1010", 10},
    		{"0B1010E2", 1000},
    		{"0b.1", 0.5},
    		{"0b.001", 0.125},
    		{"0b.001e3", 125},
    
    		// binary mantissa, binary exponent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 24.3K bytes
    - Viewed (0)
  5. src/go/constant/value_test.go

    	`0O01234567 = 01234567`,
    
    	`0o_0 = 0`,
    	`0o_1234 = 01234`,
    	`0o0123_4567 = 01234567`,
    
    	`0O_0 = 0`,
    	`0O_1234 = 01234`,
    	`0O0123_4567 = 01234567`,
    
    	// binaries
    	`0b0 = 0`,
    	`0b1011 = 0xb`,
    	`0b00101101 = 0x2d`,
    
    	`0B0 = 0`,
    	`0B1011 = 0xb`,
    	`0B00101101 = 0x2d`,
    
    	`0b_0 = 0`,
    	`0b10_11 = 0xb`,
    	`0b_0010_1101 = 0x2d`,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/scanner_test.go

    		}
    	}
    }
    
    func TestNumbers(t *testing.T) {
    	for _, test := range []struct {
    		kind             LitKind
    		src, tokens, err string
    	}{
    		// binaries
    		{IntLit, "0b0", "0b0", ""},
    		{IntLit, "0b1010", "0b1010", ""},
    		{IntLit, "0B1110", "0B1110", ""},
    
    		{IntLit, "0b", "0b", "binary literal has no digits"},
    		{IntLit, "0b0190", "0b0190", "invalid digit '9' in binary literal"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  7. src/text/scanner/scanner_test.go

    	for r := s.Scan(); r != EOF; r = s.Scan() {
    	}
    }
    
    func TestNumbers(t *testing.T) {
    	for _, test := range []struct {
    		tok              rune
    		src, tokens, err string
    	}{
    		// binaries
    		{Int, "0b0", "0b0", ""},
    		{Int, "0b1010", "0b1010", ""},
    		{Int, "0B1110", "0B1110", ""},
    
    		{Int, "0b", "0b", "binary literal has no digits"},
    		{Int, "0b0190", "0b0190", "invalid digit '9' in binary literal"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  8. src/go/scanner/scanner_test.go

    				}
    			}
    		})
    	}
    }
    
    func TestNumbers(t *testing.T) {
    	for _, test := range []struct {
    		tok              token.Token
    		src, tokens, err string
    	}{
    		// binaries
    		{token.INT, "0b0", "0b0", ""},
    		{token.INT, "0b1010", "0b1010", ""},
    		{token.INT, "0B1110", "0B1110", ""},
    
    		{token.INT, "0b", "0b", "binary literal has no digits"},
    		{token.INT, "0b0190", "0b0190", "invalid digit '9' in binary 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)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      // the operation has Options in the serialized FlatBuffer.
    
      // Whether the TFLite operator has options in the schema representation.
      bit hasOptions = 0b0;
      // Whether the TFLite operator has options2 in the schema representation.
      bit hasOptions2 = 0b0;
    
      // Use to specify a custom options type for TFLite operators where
      // the option's name does not match the TFLite operator's name.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top