0
1
mirror of https://github.com/golang/go synced 2025-11-07 01:54:36 +00:00
Files
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
..
2023-03-28 18:13:13 +00:00
2023-03-28 18:13:13 +00:00
2023-03-28 18:13:13 +00:00
2023-03-28 18:13:13 +00:00
2023-03-28 18:13:13 +00:00
2023-03-28 18:13:13 +00:00
2022-05-18 00:47:29 +00:00
2023-03-28 18:13:13 +00:00
2025-10-29 11:00:23 -07:00
2018-10-18 04:57:41 +00:00
2025-10-29 11:00:23 -07:00
2017-09-19 18:08:50 +00:00
2017-09-15 02:39:16 +00:00
2021-02-22 22:53:51 +00:00
2017-05-18 21:33:05 +00:00
2025-10-29 11:00:23 -07:00
2021-04-21 20:24:34 +00:00
2024-09-13 21:21:33 +00:00
2017-09-08 20:10:48 +00:00
2017-09-08 20:10:48 +00:00
2024-09-13 21:24:10 +00:00
2019-04-24 19:55:13 +00:00
2019-07-18 11:34:23 +00:00
2019-07-18 17:24:59 +00:00
2025-10-29 11:00:23 -07:00
2021-02-22 20:00:00 +00:00
2020-11-21 16:46:05 +00:00
2021-05-22 00:51:17 +00:00
2023-02-07 20:59:40 +00:00