- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 207 for Smallest (0.25 sec)
-
test/typeparam/smallest.go
~float32 | ~float64 | ~string } func Smallest[T Ordered](s []T) T { r := s[0] // panics if slice is empty for _, v := range s[1:] { if v < r { r = v } } return r } func main() { vec1 := []float64{5.3, 1.2, 32.8} vec2 := []string{"abc", "def", "aaa"} want1 := 1.2 if got := Smallest(vec1); got != want1 { panic(fmt.Sprintf("got %d, want %d", got, want1)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 825 bytes - Viewed (0) -
test/fixedbugs/issue11674.go
var _ = x / 1e-1000 // GC_ERROR "division by zero" var _ = x / 1e-20i var _ = x / 1e-50i // GC_ERROR "division by zero" var _ = x / 1e-1000i // GC_ERROR "division by zero" var _ = x / 1e-45 // smallest positive float32 var _ = x / (1e-20 + 1e-20i) var _ = x / (1e-50 + 1e-20i) var _ = x / (1e-20 + 1e-50i) var _ = x / (1e-50 + 1e-50i) // GC_ERROR "division by zero"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 1.1K bytes - Viewed (0) -
src/math/big/float_test.go
{"0x0.0000011p-126", math.Float32frombits(0x00000001), Above}, // rounded up to smallest denormal {"0x0.0000018p-126", math.Float32frombits(0x00000001), Above}, // rounded up to smallest denormal {"0x1.0000000p-149", math.Float32frombits(0x00000001), Exact}, // smallest denormal {"0x0.0000020p-126", math.Float32frombits(0x00000001), Exact}, // smallest denormal {"0x0.fffffe0p-126", math.Float32frombits(0x007fffff), Exact}, // largest denormal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0) -
src/encoding/json/fold.go
i++ continue } // Handle multi-byte Unicode. r, n := utf8.DecodeRune(in[i:]) out = utf8.AppendRune(out, foldRune(r)) i += n } return out } // foldRune is returns the smallest rune for all runes in the same fold set. func foldRune(r rune) rune { for { r2 := unicode.SimpleFold(r) if r2 <= r { return r2 } r = r2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 27 17:37:27 UTC 2023 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/metrics/metrics.go
&metrics.HistogramOpts{ Subsystem: "apiserver", Name: "request_body_size_bytes", Help: "Apiserver request body size in bytes broken out by resource and verb.", // we use 0.05 KB as the smallest bucket with 0.1 KB increments up to the // apiserver limit. Buckets: metrics.LinearBuckets(50000, 100000, 31), StabilityLevel: metrics.ALPHA, }, []string{"resource", "verb"}, ) )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 16 02:06:01 UTC 2023 - 1.8K bytes - Viewed (0) -
src/sort/search.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements binary search. package sort // Search uses binary search to find and return the smallest index i // in [0, n) at which f(i) is true, assuming that on the range [0, n), // f(i) == true implies f(i+1) == true. That is, Search requires that // f is false for some (possibly empty) prefix of the input range [0, n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 5.7K bytes - Viewed (0) -
src/math/big/example_test.go
} // This example demonstrates how to use big.Int to compute the smallest // Fibonacci number with 100 decimal digits and to test whether it is prime. func Example_fibonacci() { // Initialize two big ints with the first two numbers in the sequence. a := big.NewInt(0) b := big.NewInt(1) // Initialize limit as 10^99, the smallest integer with 100 digits. var limit big.Int limit.Exp(big.NewInt(10), big.NewInt(99), nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 26 16:15:32 UTC 2020 - 4K bytes - Viewed (0) -
src/cmd/nm/doc.go
// for compatibility with other nm commands // -size // print symbol size in decimal between address and type // -sort {address,name,none,size} // sort output in the given order (default name) // size orders from largest to smallest // -type // print symbol type after name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.3K bytes - Viewed (0) -
test/fixedbugs/issue14651.go
// license that can be found in the LICENSE file. // This test checks if the compiler's internal constant // arithmetic correctly rounds up floating-point values // that become the smallest denormal value. // // See also related issue 14553 and test issue14553.go. package main import ( "fmt" "math" ) const ( p149 = 1.0 / (1 << 149) // 1p-149
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 22 17:09:29 UTC 2016 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 21:48:12 UTC 2024 - 7.1K bytes - Viewed (0)