]> Cypherpunks.ru repositories - gostls13.git/commit
strconv: show what fmt package uses for float printing
authorKevin Burke <kevin@burke.dev>
Sun, 29 Jan 2023 03:56:34 +0000 (19:56 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 31 Jan 2023 16:01:01 +0000 (16:01 +0000)
commite1f9499ecfff24fac827749719e5e53c0e5acaeb
tree121294226b866ebab538bad8b73557f1f49e499f
parentf298b90bc56540e4313b7b7d3ecf08b1390b644f
strconv: show what fmt package uses for float printing

The strconv docs are not very helpful for people who just want to pick
a reasonable default, for example the one used by the fmt package to
show floats.

Add an example illustrating what the fmt package uses.

Change-Id: Iefefa70dfd4d4bfa9962a20654ee23662818ef38
Reviewed-on: https://go-review.googlesource.com/c/go/+/463980
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/strconv/example_test.go