- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for 0p0 (0.02 sec)
-
test/fixedbugs/issue9036.go
x2 = 1e10 // float x3 = 0x1e10 // integer (e is a hex digit) ) const x4 = 0x1p10 // valid hexadecimal float const x5 = 1p10 // ERROR "'p' exponent requires hexadecimal mantissa|invalid prefix" const x6 = 0P0 // ERROR "'P' exponent requires hexadecimal mantissa|invalid prefix" func main() { fmt.Printf("%g %T\n", x1, x1) fmt.Printf("%g %T\n", x2, x2) fmt.Printf("%g %T\n", x3, x3) fmt.Printf("%g %T\n", x4, x4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 10 18:34:40 UTC 2020 - 805 bytes - Viewed (0) -
src/cmd/gofmt/testdata/go2numbers.golden
// hexadecimal floats _ = 0x0.p+0 _ = 0xdeadcafe.p-10 _ = 0x1234.p123 _ = 0x.1p-0 _ = 0x.deadcafep2 _ = 0x.1234p+10 _ = 0x0p0 _ = 0xdeadcafep+1 _ = 0x1234p-10 _ = 0x0.0p0 _ = 0xdead.cafep+1 _ = 0x12.34p-10 _ = 0xdead_cafep+1 _ = 0x_1234p-10 _ = 0x_dead_cafe.p-10 _ = 0x12_34.p1_2_3 _ = 0x1_2_3_4.p-1_2_3 // imaginaries _ = 0i _ = 0i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 21 17:24:29 UTC 2019 - 1.9K bytes - Viewed (0) -
src/go/printer/testdata/go2numbers.input
// hexadecimal floats _ = 0x0.p+0 _ = 0Xdeadcafe.p-10 _ = 0x1234.P123 _ = 0x.1p-0 _ = 0X.deadcafep2 _ = 0x.1234P+10 _ = 0x0p0 _ = 0Xdeadcafep+1 _ = 0x1234P-10 _ = 0x0.0p0 _ = 0Xdead.cafep+1 _ = 0x12.34P-10 _ = 0Xdead_cafep+1 _ = 0x_1234P-10 _ = 0X_dead_cafe.p-10 _ = 0x12_34.P1_2_3 _ = 0X1_2_3_4.P-1_2_3 // imaginaries _ = 0i _ = 00i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 21:54:06 UTC 2020 - 2K bytes - Viewed (0) -
src/go/printer/testdata/go2numbers.norm
// hexadecimal floats _ = 0x0.p+0 _ = 0xdeadcafe.p-10 _ = 0x1234.p123 _ = 0x.1p-0 _ = 0x.deadcafep2 _ = 0x.1234p+10 _ = 0x0p0 _ = 0xdeadcafep+1 _ = 0x1234p-10 _ = 0x0.0p0 _ = 0xdead.cafep+1 _ = 0x12.34p-10 _ = 0xdead_cafep+1 _ = 0x_1234p-10 _ = 0x_dead_cafe.p-10 _ = 0x12_34.p1_2_3 _ = 0x1_2_3_4.p-1_2_3 // imaginaries _ = 0i _ = 0i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 17 02:15:01 UTC 2020 - 1.9K bytes - Viewed (0) -
src/cmd/gofmt/testdata/go2numbers.input
// hexadecimal floats _ = 0x0.p+0 _ = 0Xdeadcafe.p-10 _ = 0x1234.P123 _ = 0x.1p-0 _ = 0X.deadcafep2 _ = 0x.1234P+10 _ = 0x0p0 _ = 0Xdeadcafep+1 _ = 0x1234P-10 _ = 0x0.0p0 _ = 0Xdead.cafep+1 _ = 0x12.34P-10 _ = 0Xdead_cafep+1 _ = 0x_1234P-10 _ = 0X_dead_cafe.p-10 _ = 0x12_34.P1_2_3 _ = 0X1_2_3_4.P-1_2_3 // imaginaries _ = 0i _ = 00i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 21 17:24:29 UTC 2019 - 2K bytes - Viewed (0) -
src/go/printer/testdata/go2numbers.golden
// hexadecimal floats _ = 0x0.p+0 _ = 0Xdeadcafe.p-10 _ = 0x1234.P123 _ = 0x.1p-0 _ = 0X.deadcafep2 _ = 0x.1234P+10 _ = 0x0p0 _ = 0Xdeadcafep+1 _ = 0x1234P-10 _ = 0x0.0p0 _ = 0Xdead.cafep+1 _ = 0x12.34P-10 _ = 0Xdead_cafep+1 _ = 0x_1234P-10 _ = 0X_dead_cafe.p-10 _ = 0x12_34.P1_2_3 _ = 0X1_2_3_4.P-1_2_3 // imaginaries _ = 0i _ = 00i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 21:54:06 UTC 2020 - 2K bytes - Viewed (0) -
src/internal/types/testdata/check/literals.go
assert(0X.deadcafep4 == 1.0*0xdeadcafe/0x10000000) assert(0x.1234P+12 == 1.0*0x1234/0x10) assert(0x0p0 == 0.) assert(0Xdeadcafep+1 == 0x1bd5b95fc) assert(0x1234P-10 == 0x1234/1024.0) assert(0x0.0p0 == 0.) assert(0Xdead.cafep+1 == 1.0*0x1bd5b95fc/0x10000) assert(0x12.34P-10 == 1.0*0x1234/0x40000) assert(0Xdead_cafep+1 == 0xdeadcafep+1) assert(0x_1234P-10 == 0x1234p-10)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 2.4K bytes - Viewed (0) -
src/math/big/floatconv_test.go
{"-687436.79457E245", -687436.79457e245}, {".0000000000000000000000000000000000000001", 1e-40}, {"+10000000000000000000000000000000000000000e-0", 1e40}, // decimal mantissa, binary exponent {"0p0", 0}, {"-0p0", -zero_}, {"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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
{FloatLit, "0e", "0e", "exponent has no digits"}, {FloatLit, "0E+", "0E+", "exponent has no digits"}, {FloatLit, "1e+f", "1e+ f", "exponent has no digits"}, {FloatLit, "0p0", "0p0", "'p' exponent requires hexadecimal mantissa"}, {FloatLit, "1.0P-1", "1.0P-1", "'P' exponent requires hexadecimal mantissa"}, {ImagLit, "0.i", "0.i", ""}, {ImagLit, ".123i", ".123i", ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/text/scanner/scanner_test.go
{Float, "0123.0123e+456", "0123.0123e+456", ""}, {Float, "0e", "0e", "exponent has no digits"}, {Float, "0E+", "0E+", "exponent has no digits"}, {Float, "1e+f", "1e+ f", "exponent has no digits"}, {Float, "0p0", "0p0", "'p' exponent requires hexadecimal mantissa"}, {Float, "1.0P-1", "1.0P-1", "'P' exponent requires hexadecimal mantissa"}, // hexadecimals {Int, "0x0", "0x0", ""}, {Int, "0x1234", "0x1234", ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 03:41:50 UTC 2022 - 25.3K bytes - Viewed (0)