- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for MaxFloat64 (0.15 sec)
-
internal/s3select/sql/value_test.go
}, { name: "max", fields: fields{ value: []byte(strconv.FormatFloat(math.MaxFloat64, 'g', -1, 64)), }, want: math.MaxFloat64, wantOK: true, }, { name: "min", fields: fields{ value: []byte(strconv.FormatFloat(-math.MaxFloat64, 'g', -1, 64)), }, want: -math.MaxFloat64, wantOK: true, }, { name: "max-overflow", fields: fields{
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K bytes - Viewed (0) -
src/math/rand/v2/rand.go
// swap swaps the elements with indexes i and j. func Shuffle(n int, swap func(i, j int)) { globalRand.Shuffle(n, swap) } // NormFloat64 returns a normally distributed float64 in the range // [-math.MaxFloat64, +math.MaxFloat64] with // standard normal distribution (mean = 0, stddev = 1) // from the default Source. // To produce a different normal distribution, callers can // adjust the output using: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
src/math/rand/rand.go
func Read(p []byte) (n int, err error) { return globalRand().Read(p) } // NormFloat64 returns a normally distributed float64 in the range // [-[math.MaxFloat64], +[math.MaxFloat64]] with // standard normal distribution (mean = 0, stddev = 1) // from the default [Source]. // To produce a different normal distribution, callers can // adjust the output using: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
src/math/rand/v2/exp.go
* (Marsaglia & Tsang, 2000) * https://www.jstatsoft.org/v05/i08/paper [pdf] */ const ( re = 7.69711747013104972 ) // ExpFloat64 returns an exponentially distributed float64 in the range // (0, +math.MaxFloat64] with an exponential distribution whose rate parameter // (lambda) is 1 and whose mean is 1/lambda (1). // To produce a distribution with a different rate parameter, // callers can adjust the output using: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 17:08:47 UTC 2023 - 10.9K bytes - Viewed (0) -
src/math/rand/exp.go
* (Marsaglia & Tsang, 2000) * https://www.jstatsoft.org/v05/i08/paper [pdf] */ const ( re = 7.69711747013104972 ) // ExpFloat64 returns an exponentially distributed float64 in the range // (0, +[math.MaxFloat64]] with an exponential distribution whose rate parameter // (lambda) is 1 and whose mean is 1/lambda (1). // To produce a distribution with a different rate parameter, // callers can adjust the output using: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 10.9K bytes - Viewed (0) -
src/testing/quick/quick.go
if rand.Int()&1 == 1 { f = -f } return float32(f) } // randFloat64 generates a random float taking the full range of a float64. func randFloat64(rand *rand.Rand) float64 { f := rand.Float64() * math.MaxFloat64 if rand.Int()&1 == 1 { f = -f } return f } // randInt64 returns a random int64. func randInt64(rand *rand.Rand) int64 { return int64(rand.Uint64()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
src/math/big/ratconv_test.go
"1/3", } // isFinite reports whether f represents a finite rational value. // It is equivalent to !math.IsNan(f) && !math.IsInf(f, 0). func isFinite(f float64) bool { return math.Abs(f) <= math.MaxFloat64 } func TestFloat32SpecialCases(t *testing.T) { for _, input := range float64inputs { if strings.HasPrefix(input, "long:") { if !*long { continue } input = input[len("long:"):]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 22:16:34 UTC 2023 - 19.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// Iterate through the various n-choose-k NUMA node combinations, // looking for the combination of NUMA nodes that can best have CPUs // distributed across them. var bestBalance float64 = math.MaxFloat64 var bestRemainder []int = nil var bestCombo []int = nil acc.iterateCombinations(numas, k, func(combo []int) LoopControl { // If we've already found a combo with a balance of 0 in a
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
api/go1.17.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go
want: float64(math.SmallestNonzeroFloat64), assertOnError: assertNilError, }, { name: "max float64 value", in: hex("fb7fefffffffffffff"), want: float64(math.MaxFloat64), assertOnError: assertNilError, }, { name: "max float32 value as double precision", in: hex("fb47efffffe0000000"), want: float64(math.MaxFloat32),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 18:43:10 UTC 2024 - 25.6K bytes - Viewed (0)