]> Cypherpunks repositories - gostls13.git/commit
strconv: format hex floats
authorRuss Cox <rsc@golang.org>
Wed, 30 Jan 2019 01:16:59 +0000 (20:16 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 12 Feb 2019 14:48:22 +0000 (14:48 +0000)
commite2d87f2ca5affab517baef8008cb80559d03e15a
tree2ea7080df600af82abd222f8712a6078be10fa67
parent07717247d8decf5a5793f04c368eab3f43fad44f
strconv: format hex floats

This CL updates FormatFloat to format
standard hexadecimal floating-point constants,
using the 'x' and 'X' verbs.

See golang.org/design/19308-number-literals for background.

For #29008.

Change-Id: I540b8f71d492cfdb7c58af533d357a564591f28b
Reviewed-on: https://go-review.googlesource.com/c/160242
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/floatconv_test.go
src/strconv/ftoa.go
src/strconv/ftoa_test.go
src/strconv/quote.go