From a5a92aa6733d96ed7ccd4882bbf0fadb8fd098b6 Mon Sep 17 00:00:00 2001
From: Emmanuel T Odeke
Date: Tue, 20 Aug 2019 23:09:31 -0600
Subject: [PATCH] [release-branch.go1.13] doc/go1.13: document _ between digits
for math/big, strconv
Document that:
* math/big.Float.Parse
* math/big.Int.SetString
* strconv.ParseFloat
* strconv.ParseInt
* strconv.ParseUint
now accept underscores to group digits only if base = 0,
as per the Go 2 language changes.
Updates #32815
Change-Id: Id45bd803a18442436419739297e8aed0d32ca56c
Reviewed-on: https://go-review.googlesource.com/c/go/+/191077
Reviewed-by: Robert Griesemer
(cherry picked from commit e764432605cb26478067890b49f4f16019c9a9b9)
Reviewed-on: https://go-review.googlesource.com/c/go/+/191477
Run-TryBot: Andrew Bonventre
Reviewed-by: Emmanuel Odeke
TryBot-Result: Gobot Gobot
---
doc/go1.13.html | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/doc/go1.13.html b/doc/go1.13.html
index 30ea1a5c30..6cee0b28e6 100644
--- a/doc/go1.13.html
+++ b/doc/go1.13.html
@@ -723,6 +723,18 @@ godoc
The new Rat.SetUint64
method sets the Rat
to a uint64
value.
+
+ For Float.Parse
, if base is 0, underscores
+ may be used between digits for readability.
+ See the Changes to the language for details.
+
+
+
+ For Int.SetString
, if base is 0, underscores
+ may be used between digits for readability.
+ See the Changes to the language for details.
+
+
Rat.SetString
now accepts non-decimal floating point representations.
@@ -888,6 +900,18 @@ godoc
+- strconv
+ -
+
+ For strconv.ParseFloat
,
+ strconv.ParseInt
+ and strconv.ParseUint
,
+ if base is 0, underscores may be used between digits for readability.
+ See the Changes to the language for details.
+
+
+
+
- strings
-
--
2.50.0