go/test/ken
Russ Cox 9035f7aea5 runtime: use internal/strconv
Runtime doing its own number formatting dates back to
when runtime was the bottom-most Go package.
Those days are long gone. Use internal/strconv to avoid
duplicating code and also to get better floating-point
formatting:

% go1.24.6 run x.go
+1.234568e+004
% go run x.go
12345.678
%

With accurate floating point it becomes necessary to
introduce separate printers for float32 vs float64 and
for complex64 vs complex128. Otherwise float32(93.7)
prints as 93.69999694824219.

Change-Id: I25ae3f09519342dc3d1dcabf4711651423e00128
Reviewed-on: https://go-review.googlesource.com/c/go/+/716002
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-10-29 11:00:23 -07:00
..
array.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
chan.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
chan1.go go/test/chan1.go: fix typo 2012-02-25 08:47:04 +11:00
complit.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
convert.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
cplx0.go test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
cplx0.out runtime: use internal/strconv 2025-10-29 11:00:23 -07:00
cplx1.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
cplx2.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
cplx3.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
cplx4.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
cplx5.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
divconst.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
divmod.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
embed.go all: fix spelling mistakes 2016-04-03 17:03:15 +00:00
for.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
interbasic.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
interfun.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
intervar.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
label.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
litfun.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
mfunc.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
modconst.go all: fix typos 2019-09-08 17:28:20 +00:00
ptrfun.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
ptrvar.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
range.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
rob1.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
rob2.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
robfor.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
robfunc.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
shift.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simparray.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simpbool.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simpconv.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simpfun.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simpswitch.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
simpvar.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
slicearray.go test/ken/slicearray.go: correct type width in comment 2021-12-05 12:50:44 +00:00
sliceslice.go test: document ken/*.go 2012-02-24 16:24:24 +11:00
string.go test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
string.out test: split golden.out into expected output per test 2012-01-18 16:12:24 -08:00
strvar.go test: document ken/*.go 2012-02-24 16:24:24 +11:00