- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 38 for MaxFloat64 (0.2 sec)
-
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/go/constant/value_test.go
var zero float64 for _, arg := range []float64{ -math.MaxFloat32, -10, -0.5, -zero, zero, 1, 10, 123456789.87654321e-23, 1e10, math.MaxFloat64, } { val := MakeFloat64(arg) if val.Kind() != Float { t.Errorf("%v: got kind = %d; want %d", arg, val.Kind(), Float) } // -0.0 is mapped to 0.0 got, exact := Float64Val(val)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
src/math/big/float_test.go
{"1", 1, Exact}, {"1.000000000000000000001", 1, Below}, {"12345.0", 12345, Exact}, {"12345.000000000000000000001", 12345, Below}, {"0x1.fffffffffffff0p1023", math.MaxFloat64, Exact}, {"0x1.fffffffffffff4p1023", math.MaxFloat64, Below}, // overflow {"0x1.fffffffffffff8p1023", math.Inf(+1), Above}, {"0x1p1024", math.Inf(+1), Above}, {"1e10000", math.Inf(+1), Above},
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/math/all_test.go
) var vffrexpBC = []float64{ SmallestNormalFloat64, LargestSubnormalFloat64, SmallestNonzeroFloat64, MaxFloat64, -SmallestNormalFloat64, -LargestSubnormalFloat64, -SmallestNonzeroFloat64, -MaxFloat64, } var frexpBC = []fi{ {0.5, -1021}, {0.99999999999999978, -1022}, {0.5, -1073}, {0.99999999999999989, 1024}, {-0.5, -1021},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K 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/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
}, }, {name: "numbers", obj: objs(math.MaxFloat64, math.MaxFloat64, math.MaxFloat32, math.MaxFloat32, math.MaxFloat64, math.MaxFloat64, int64(1)), schema: schemas(numberType, numberType, floatType, floatType, doubleType, doubleType, doubleType), valid: []string{ ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", fmt.Sprintf("%f", math.MaxFloat64)),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
src/math/big/floatconv_test.go
{"-0x0p-10", -zero_}, {"0xff", 255}, {"0X.8p1", 1}, {"-0X0.00008p16", -0.5}, {"-0X0.00008P+16", -0.5}, {"0x0.0000000000001p-1022", math.SmallestNonzeroFloat64}, {"0x1.fffffffffffffp1023", math.MaxFloat64}, // underscores {"0_0", 0}, {"1_000.", 1000}, {"1_2_3.4_5_6", 123.456}, {"1.0e0_0", 1}, {"1p+1_0", 1024}, {"0b_1000", 0x8}, {"0b_1011_1101", 0xbd},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K 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)