- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for 5e6 (0.06 sec)
-
test/fixedbugs/bug120.go
import "os" import "strconv" type Test struct { f float64 in string out string } var tests = []Test{ Test{123.5, "123.5", "123.5"}, Test{456.7, "456.7", "456.7"}, Test{1e23 + 8.5e6, "1e23+8.5e6", "1.0000000000000001e+23"}, Test{100000000000000008388608, "100000000000000008388608", "1.0000000000000001e+23"}, Test{1e23 + 8388609, "1e23+8388609", "1.0000000000000001e+23"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 1.8K bytes - Viewed (0) -
src/index/suffixarray/suffixarray_test.go
b.Run("text="+text, func(b *testing.B) { data, err := makeText(text) if err != nil { b.Fatal(err) } if testing.Short() && len(data) > 5e6 { data = data[:5e6] } for _, size := range []int{100e3, 500e3, 1e6, 5e6, 10e6, 50e6} { if len(data) < size { continue } data := data[:size] name := fmt.Sprintf("%dK", size/1e3) if size >= 1e6 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 14.1K bytes - Viewed (0) -
src/time/mono_test.go
t.Errorf("Now().Add(1*Hour).Compare(Now()) = %d, want %d", got, want) } } func TestMonotonicSub(t *testing.T) { t1 := Unix(1483228799, 995e6) SetMono(&t1, 123456789012345) t2 := Unix(1483228799, 5e6) SetMono(&t2, 123456789012345+10e6) t3 := Unix(1483228799, 995e6) SetMono(&t3, 123456789012345+1e9) t1w := t1.AddDate(0, 0, 0) if GetMono(&t1w) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 17:10:49 UTC 2022 - 8.3K bytes - Viewed (0) -
src/go/constant/value.go
switch am := math.Abs(m); { case am < 1-0.5e-6: // The %.6g format below rounds m to 5 digits after the // decimal point. Make sure that m*10 < 10 even after // rounding up: m*10 + 0.5e-5 < 10 => m < 1 - 0.5e6. m *= 10 e-- case am >= 10: m /= 10 e++ } return fmt.Sprintf("%.6ge%+d", m, e) } func (x complexVal) String() string { return fmt.Sprintf("(%s + %si)", x.re, x.im) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0)