- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for 1415927 (0.17 sec)
-
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/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/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/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/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/internal/types/testdata/check/const0.go
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) ) func _() { const ( a1, a2, a3 = 7, 3.1415926, "foo" b1, b2, b3 = b3, b1, 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) -
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) -
src/cmd/vendor/golang.org/x/arch/x86/x86asm/tables.go
0xc4, 11587, 0xc5, 11587, 0xc6, 11587, 0xc7, 11587, 0xc8, 11592, 0xc9, 11592, 0xca, 11592, 0xcb, 11592, 0xcc, 11592, 0xcd, 11592, 0xce, 11592, 0xcf, 11592, 0xd0, 11597, 0xd1, 11597, 0xd2, 11597, 0xd3, 11597, 0xd4, 11597, 0xd5, 11597, 0xd6, 11597, 0xd7, 11597, 0xd8, 11601, 0xd9, 11601, 0xda, 11601, 0xdb, 11601,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 16 22:24:28 UTC 2022 - 266.8K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go
// {"Flags":0,"ParamFlags":[96,0],"ResultFlags":null} // callsite: calls.go:103:9|0 flagstr "" flagval 0 score 2 mask 0 maskstr "" // callsite: calls.go:112:9|1 flagstr "" flagval 0 score 2 mask 0 maskstr "" // callsite: calls.go:115:9|2 flagstr "" flagval 0 score 2 mask 0 maskstr "" // callsite: calls.go:119:12|3 flagstr "CallSiteOnPanicPath" flagval 2 score 102 mask 1 maskstr "panicPathAdj" // <endcallsites> // <endfuncpreamble>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 7.1K bytes - Viewed (0)