- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Atof64 (0.11 sec)
-
test/fixedbugs/bug120.go
v := strconv.FormatFloat(t.f, 'g', -1, 64) if v != t.out { println("Bad float64 const:", t.in, "want", t.out, "got", v) x, err := strconv.ParseFloat(t.out, 64) if err != nil { println("bug120: strconv.Atof64", t.out) panic("fail") } println("\twant exact:", strconv.FormatFloat(x, 'g', 1000, 64)) println("\tgot exact: ", strconv.FormatFloat(t.f, 'g', 1000, 64)) ok = false } } if !ok {
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/strconv/fp_test.go
continue } var s string var v float64 switch a[0] { case "float64": var ok bool v, ok = myatof64(a[2]) if !ok { t.Error("testdata/testfp.txt:", lineno, ": cannot atof64 ", a[2]) continue } s = fmt.Sprintf(a[1], v) case "float32": v1, ok := myatof32(a[2]) if !ok { t.Error("testdata/testfp.txt:", lineno, ": cannot atof32 ", a[2]) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 2.9K bytes - Viewed (0) -
src/fmt/stringer_test.go
type TI8 int8 type TI16 int16 type TI32 int32 type TI64 int64 type TU uint type TU8 uint8 type TU16 uint16 type TU32 uint32 type TU64 uint64 type TUI uintptr type TF float64 type TF32 float32 type TF64 float64 type TB bool type TS string func (v TI) String() string { return Sprintf("I: %d", int(v)) } func (v TI8) String() string { return Sprintf("I8: %d", int8(v)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.1K bytes - Viewed (0) -
src/debug/dwarf/typeunit.go
return err } asize := b.uint8() sig := b.uint64() var toff uint32 if !dwarf64 { toff = b.uint32() } else { to64 := b.uint64() if to64 != uint64(uint32(to64)) { b.error("type unit type offset overflow") return b.err } toff = uint32(to64) } boff := b.off d.typeSigs[sig] = &typeUnit{ unit: unit{ base: base, off: boff,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.6K bytes - Viewed (0) -
src/runtime/softfloat64_test.go
for _, g := range all { h := hw(f, g) s := sw(f, g) if !same(h, s) { err(t, "%g %s %g = sw %g, hw %g\n", f, op, g, s, h) } testu(t, "to32", trunc32, to32sw, h) testu(t, "to64", trunc32, to64sw, h) testu(t, "toint64", hwint64, toint64sw, h) testu(t, "fromint64", hwint64, fromint64sw, h) testcmp(t, f, h) testcmp(t, h, f) testcmp(t, g, h) testcmp(t, h, g) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4K bytes - Viewed (0)