Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for 1e0 (0.05 sec)

  1. src/archive/tar/strconv_test.go

    		{"-1.000000001", time.Unix(-1, -1e0+0e0), true},
    		{"-1.000001", time.Unix(-1, -1e3+0e0), true},
    		{"-1.001000", time.Unix(-1, -1e6+0e0), true},
    		{"-1", time.Unix(-1, -0e0+0e0), true},
    		{"-1.999000", time.Unix(-1, -1e9+1e6), true},
    		{"-1.999999", time.Unix(-1, -1e9+1e3), true},
    		{"-1.999999999", time.Unix(-1, -1e9+1e0), true},
    		{"0.000000001", time.Unix(0, 1e0+0e0), true},
    		{"0.000001", time.Unix(0, 1e3+0e0), true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  2. test/fixedbugs/issue13559.go

    	_ int64 = 1e100      // ERROR "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 overflows|truncated to int64|truncated"
    	_ int64 = 1e10
    	_ int64 = 1e1
    	_ int64 = 1e0
    	_ int64 = 1e-1       // ERROR "0\.1 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-10      // ERROR "1e\-10 truncated|.* truncated to int64|truncated"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  3. test/fixedbugs/issue43480.go

    // license that can be found in the LICENSE file.
    
    // Issue #43480: ICE on large uint64 constants in switch cases.
    
    package main
    
    func isPow10(x uint64) bool {
    	switch x {
    	case 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    		1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19:
    		return true
    	}
    	return false
    }
    
    func main() {
    	var x uint64 = 1
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 04 10:30:07 UTC 2021
    - 626 bytes
    - Viewed (0)
  4. src/math/big/ratconv_test.go

    	{in: "4/3."},
    	{in: "4/"},
    	{in: "13e-9223372036854775808"}, // CVE-2022-23772
    
    	// valid
    	{"0", "0", true},
    	{"-0", "0", true},
    	{"1", "1", true},
    	{"-1", "-1", true},
    	{"1.", "1", true},
    	{"1e0", "1", true},
    	{"1.e1", "10", true},
    	{"-0.1", "-1/10", true},
    	{"-.1", "-1/10", true},
    	{"2/4", "1/2", true},
    	{".25", "1/4", true},
    	{"-1/5", "-1/5", true},
    	{"8129567.7690E14", "812956776900000000000", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  5. src/text/scanner/scanner_test.go

    	{Float, ".42"},
    	{Float, ".0123456789"},
    	{Float, "0.0"},
    	{Float, "1.0"},
    	{Float, "42.0"},
    	{Float, "01234567890.0"},
    	{Float, "0e0"},
    	{Float, "1e0"},
    	{Float, "42e0"},
    	{Float, "01234567890e0"},
    	{Float, "0E0"},
    	{Float, "1E0"},
    	{Float, "42E0"},
    	{Float, "01234567890E0"},
    	{Float, "0e+10"},
    	{Float, "1e-10"},
    	{Float, "42e+10"},
    	{Float, "01234567890e-10"},
    	{Float, "0E+10"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/scanner_test.go

    		{FloatLit, "0x.0", "0x.0", "hexadecimal mantissa requires a 'p' exponent"},
    		{FloatLit, "0x1.1", "0x1.1", "hexadecimal mantissa requires a 'p' exponent"},
    		{FloatLit, "0x1.1e0", "0x1.1e0", "hexadecimal mantissa requires a 'p' exponent"},
    		{FloatLit, "0x1.2gp1a", "0x1.2 gp1a", "hexadecimal mantissa requires a 'p' exponent"},
    		{FloatLit, "0x0p", "0x0p", "exponent has no digits"},
    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/math/big/floatconv_test.go

    			t.Errorf("%v: got %q; want %q", test, got, test.want)
    		}
    	}
    }
    
    func BenchmarkParseFloatSmallExp(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		for _, s := range []string{
    			"1e0",
    			"1e-1",
    			"1e-2",
    			"1e-3",
    			"1e-4",
    			"1e-5",
    			"1e-10",
    			"1e-20",
    			"1e-50",
    			"1e1",
    			"1e2",
    			"1e3",
    			"1e4",
    			"1e5",
    			"1e10",
    			"1e20",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 24.3K bytes
    - Viewed (0)
  8. src/strconv/atof.go

    	}
    	return bits, overflow
    }
    
    // Exact powers of 10.
    var float64pow10 = []float64{
    	1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    	1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
    	1e20, 1e21, 1e22,
    }
    var float32pow10 = []float32{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10}
    
    // If possible to convert decimal representation to 64-bit float f exactly,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  9. src/go/scanner/scanner_test.go

    		{token.FLOAT, "0x.0", "0x.0", "hexadecimal mantissa requires a 'p' exponent"},
    		{token.FLOAT, "0x1.1", "0x1.1", "hexadecimal mantissa requires a 'p' exponent"},
    		{token.FLOAT, "0x1.1e0", "0x1.1e0", "hexadecimal mantissa requires a 'p' exponent"},
    		{token.FLOAT, "0x1.2gp1a", "0x1.2 gp1a", "hexadecimal mantissa requires a 'p' exponent"},
    		{token.FLOAT, "0x0p", "0x0p", "exponent has no digits"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  10. src/go/printer/testdata/declarations.golden

    const (
    	_	= "foobar"
    	_	= "a۰۱۸"
    	_	= "foo६४"
    	_	= "bar9876"
    	_	= 0
    	_	= 1
    	_	= 123456789012345678890
    	_	= 01234567
    	_	= 0xcafebabe
    	_	= 0.
    	_	= .0
    	_	= 3.14159265
    	_	= 1e0
    	_	= 1e+100
    	_	= 1e-100
    	_	= 2.71828e-1000
    	_	= 0i
    	_	= 1i
    	_	= 012345678901234567889i
    	_	= 123456789012345678890i
    	_	= 0.i
    	_	= .0i
    	_	= 3.14159265i
    	_	= 1e0i
    	_	= 1e+100i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
Back to top