]> Cypherpunks repositories - gostls13.git/commit
strconv: parse hex floats
authorRuss Cox <rsc@golang.org>
Tue, 29 Jan 2019 21:25:54 +0000 (16:25 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 12 Feb 2019 14:48:20 +0000 (14:48 +0000)
commit07717247d8decf5a5793f04c368eab3f43fad44f
treeb4403ad4877fef465674717caacfc45178d26b32
parent1edd2a34c1bcf2133b659878e8b59e401eb8cc24
strconv: parse hex floats

This CL updates ParseFloat to recognize
standard hexadecimal floating-point constants.
See golang.org/design/19308-number-literals for background.

For #29008.

Change-Id: I45f3b0c36b5d92c0e8a4b35c05443a83d7a6d4b3
Reviewed-on: https://go-review.googlesource.com/c/160241
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/strconv/atof.go
src/strconv/atof_test.go
src/strconv/atoi.go