- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFloat32Distribution (0.14 sec)
-
src/math/big/rat_test.go
x.SetFrac(a, b) a = x.Num() b = x.Denom() a.SetInt64(5) b.SetInt64(3) if x.Cmp(q53) != 0 { t.Errorf("3) got %s want %s", x, q53) } } func TestFloat32Distribution(t *testing.T) { // Generate a distribution of (sign, mantissa, exp) values // broader than the float32 range, and check Rat.Float32() // always picks the closest float32 approximation. var add = []int64{ 0,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0)