- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for 1415926 (0.14 sec)
-
src/internal/types/testdata/check/const0.go
f float64 = d ) // multiple initialization const ( a1, a2, a3 = 7, 3.1415926, "foo" b1, b2, b3 = b3, b1, 42 c1, c2, c3 /* ERROR "missing init expr for c3" */ = 1, 2 d1, d2, d3 = 1, 2, 3, 4 /* ERROR "extra init expr 4" */ _p0 = assert(a1 == 7) _p1 = assert(a2 == 3.1415926) _p2 = assert(a3 == "foo") _p3 = assert(b1 == 42) _p4 = assert(b2 == 42) _p5 = assert(b3 == 42) )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
test/fixedbugs/bug154.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "fmt" func f0() string { const f = 3.141592; return fmt.Sprintf("%v", float64(f)); } func f1() string { const f = 3.141592; x := float64(float32(f)); // appears to change the precision of f _ = x; return fmt.Sprintf("%v", float64(f)); } func main() { r0 := f0();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 585 bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_swig.txt
g := Gcd(x, y) fmt.Println("The gcd of", x, "and", y, "is", g) // Manipulate the Foo global variable // Output its current value fmt.Println("Foo =", GetFoo()) // Change its value SetFoo(3.1415926) // See if the change took effect fmt.Println("Foo =", GetFoo()) } -- main.swig -- %module main %inline %{ extern int gcd(int x, int y); extern double Foo; %} -- main_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 05 21:29:51 UTC 2024 - 1.1K bytes - Viewed (0) -
src/math/big/ratmarsh_test.go
enc := gob.NewEncoder(&medium) dec := gob.NewDecoder(&medium) for _, test := range encodingTests { medium.Reset() // empty buffer for each test case (in case of failures) var tx Rat tx.SetString(test + ".14159265") if err := enc.Encode(&tx); err != nil { t.Errorf("encoding of %s failed: %s", &tx, err) continue } var rx Rat if err := dec.Decode(&rx); err != nil { t.Errorf("decoding of %s failed: %s", &tx, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:20:16 UTC 2022 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 25.2K bytes - Viewed (0) -
src/go/internal/gcimporter/testdata/exports.go
package exports import "go/ast" // Issue 3682: Correctly read dotted identifiers from export data. const init1 = 0 func init() {} const ( C0 int = 0 C1 = 3.14159265 C2 = 2.718281828i C3 = -123.456e-789 C4 = +123.456e+789 C5 = 1234i C6 = "foo\n" C7 = `bar\n` C8 = 42 C9 int = 42 C10 float64 = 42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_gopath_order.txt
# golang.org/issue/14176#issuecomment-179895769 # golang.org/issue/14192 # -I arguments to compiler could end up not in GOPATH order, # leading to unexpected import resolution in the compiler. env GO111MODULE=off env GOPATH=$WORK/p1${:}$WORK/p2 mkdir $WORK/p1/src/foo $WORK/p2/src/baz mkdir $WORK/p2/pkg/${GOOS}_${GOARCH} $WORK/p1/src/bar cp foo.go $WORK/p1/src/foo/foo.go cp baz.go $WORK/p2/src/baz/baz.go cp foo.a $WORK/p2/pkg/${GOOS}_${GOARCH}/foo.a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 855 bytes - Viewed (0) -
src/strconv/example_test.go
fmt.Println(string(b32)) b64 := []byte("float64:") b64 = strconv.AppendFloat(b64, 3.1415926535, 'E', -1, 64) fmt.Println(string(b64)) // Output: // float32:3.1415927E+00 // float64:3.1415926535E+00 } func ExampleAppendInt() { b10 := []byte("int (base 10):") b10 = strconv.AppendInt(b10, -42, 10) fmt.Println(string(b10)) b16 := []byte("int (base 16):")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 22:57:37 UTC 2023 - 8.9K bytes - Viewed (0) -
src/fmt/example_test.go
// in the output) and 2 is the number of decimal places to show. pi := math.Pi fmt.Printf("%v %g %.2f (%6.2f) %e\n", pi, pi, pi, pi, pi) // Result: 3.141592653589793 3.141592653589793 3.14 ( 3.14) 3.141593e+00 // Complex numbers format as parenthesized pairs of floats, with an 'i' // after the imaginary part. point := 110.7 + 22.5i fmt.Printf("%v %g %.2f %.2e\n", point, point, point, point)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 21:03:10 UTC 2019 - 11.8K bytes - Viewed (0) -
platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/NestedInputKotlinImplementationTrackingIntegrationTest.groovy
} } """ buildFile << """ plugins { `my-plugin` } """ when: if (['1.4', '1.5', '1.6'].contains(kotlinLanguageVersion)) { executer.expectDeprecationWarning("w: Language version $kotlinLanguageVersion is deprecated and its support will be removed in a future version of Kotlin") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 06:52:58 UTC 2024 - 7.9K bytes - Viewed (0)