Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 0_1_234_567 (0.14 sec)

  1. src/cmd/compile/internal/syntax/scanner_test.go

    	// literal samples
    	{_Literal, "0", 0, 0},
    	{_Literal, "1", 0, 0},
    	{_Literal, "12345", 0, 0},
    	{_Literal, "123456789012345678890123456789012345678890", 0, 0},
    	{_Literal, "01234567", 0, 0},
    	{_Literal, "0_1_234_567", 0, 0},
    	{_Literal, "0X0", 0, 0},
    	{_Literal, "0xcafebabe", 0, 0},
    	{_Literal, "0x_cafe_babe", 0, 0},
    	{_Literal, "0O0", 0, 0},
    	{_Literal, "0o000", 0, 0},
    	{_Literal, "0o_000", 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  2. src/go/printer/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 May 01 21:54:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/go/printer/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 May 01 21:54:06 UTC 2020
    - 2K 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/go/constant/value_test.go

    import (
    	"fmt"
    	"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`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  9. src/time/format_test.go

    	{"2021-09-29T16:04:33.9999999999Z", 999_999_999},
    	{"2021-09-29T16:04:33.0123456789Z", 12_345_678},
    	// 11 digits, truncates
    	{"2021-09-29T16:04:33.10000000000Z", 100_000_000},
    	{"2021-09-29T16:04:33.00123456789Z", 1_234_567},
    	// 12 digits, truncates
    	{"2021-09-29T16:04:33.000123456789Z", 123_456},
    	// 15 digits, truncates
    	{"2021-09-29T16:04:33.9999999999999999Z", 999_999_999},
    }
    
    // Issue 48685 and 54567.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top