- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for MaxFloat64 (0.28 sec)
-
src/internal/types/testdata/check/const1.go
) const delta64 = maxFloat64/(1 << 52) const ( _ float64 = - /* ERROR "overflow" */ (maxFloat64 + delta64) _ float64 = -maxFloat64 _ float64 = maxFloat64 _ float64 = maxFloat64 /* ERROR "overflow" */ + delta64 _ = float64(- /* ERROR "cannot convert" */ (maxFloat64 + delta64)) _ = float64(-maxFloat64) _ = float64(maxFloat64) _ = float64(maxFloat64 /* ERROR "cannot convert" */ + delta64)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 8.5K bytes - Viewed (0) -
src/math/rand/normal.go
) func absInt32(i int32) uint32 { if i < 0 { return uint32(-i) } return uint32(i) } // NormFloat64 returns a normally distributed float64 in // the range -[math.MaxFloat64] through +[math.MaxFloat64] inclusive, // with standard normal distribution (mean = 0, stddev = 1). // To produce a different normal distribution, 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 - 6.3K bytes - Viewed (0) -
src/math/rand/v2/normal.go
rn = 3.442619855899 ) func absInt32(i int32) uint32 { if i < 0 { return uint32(-i) } return uint32(i) } // NormFloat64 returns a normally distributed float64 in // the range -math.MaxFloat64 through +math.MaxFloat64 inclusive, // with standard normal distribution (mean = 0, stddev = 1). // To produce a different normal distribution, 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 - 6.3K 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) -
src/internal/fuzz/mutator.go
case uint64: vals[i] = m.mutateUInt(v, maxUint) case float32: vals[i] = float32(m.mutateFloat(float64(v), math.MaxFloat32)) case float64: vals[i] = m.mutateFloat(v, math.MaxFloat64) case bool: if m.rand(2) == 1 { vals[i] = !v // 50% chance of flipping the bool } case rune: // int32 vals[i] = rune(m.mutateInt(int64(v), math.MaxInt32)) case byte: // uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
} } } func FuzzFloat64RoundTrip(f *testing.F) { f.Add(math.Float64bits(0)) f.Add(math.Float64bits(math.Copysign(0, -1))) f.Add(math.Float64bits(math.MaxFloat64)) f.Add(math.Float64bits(math.SmallestNonzeroFloat64)) f.Add(math.Float64bits(math.NaN())) f.Add(uint64(0x7FF0000000000001)) // signaling NaN f.Add(math.Float64bits(math.Inf(1)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0)