Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 1E0 (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/math/big/nat_test.go

    		got := string(fibo(n).utoa(10))
    		if got != want {
    			t.Errorf("fibo(%d) failed: got %s want %s", n, got, want)
    		}
    	}
    }
    
    func BenchmarkFibo(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		fibo(1e0)
    		fibo(1e1)
    		fibo(1e2)
    		fibo(1e3)
    		fibo(1e4)
    		fibo(1e5)
    	}
    }
    
    var bitTests = []struct {
    	x    string
    	i    uint
    	want uint
    }{
    	{"0", 0, 0},
    	{"0", 1, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/internal/language/compact/tables.go

    	0x2b800000, 0x2b8000b0, 0x2bf00000, 0x2bf0009c,
    	0x2bf0009d, 0x2c000000, 0x2c0000b7, 0x2c200000,
    	0x2c20004b, 0x2c400000, 0x2c4000a5, 0x2c500000,
    	0x2c5000a5, 0x2c700000, 0x2c7000b9, 0x2d100000,
    	// Entry 1E0 - 1FF
    	0x2d1000a5, 0x2d100130, 0x2e900000, 0x2e9000a5,
    	0x2ed00000, 0x2ed000cd, 0x2f100000, 0x2f1000c0,
    	0x2f200000, 0x2f2000d2, 0x2f400000, 0x2f400052,
    	0x2ff00000, 0x2ff000c3, 0x30400000, 0x3040009a,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  9. src/strconv/eisel_lemire.go

    	{0x645A1CAC083126E9, 0x83126E978D4FDF3B}, // 1e-3
    	{0x3D70A3D70A3D70A3, 0xA3D70A3D70A3D70A}, // 1e-2
    	{0xCCCCCCCCCCCCCCCC, 0xCCCCCCCCCCCCCCCC}, // 1e-1
    	{0x0000000000000000, 0x8000000000000000}, // 1e0
    	{0x0000000000000000, 0xA000000000000000}, // 1e1
    	{0x0000000000000000, 0xC800000000000000}, // 1e2
    	{0x0000000000000000, 0xFA00000000000000}, // 1e3
    	{0x0000000000000000, 0x9C40000000000000}, // 1e4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 41.4K bytes
    - Viewed (0)
Back to top