]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add release note for math/big.Rat.FloatPrec
authorRobert Griesemer <gri@golang.org>
Mon, 4 Dec 2023 18:45:50 +0000 (10:45 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 5 Dec 2023 18:30:46 +0000 (18:30 +0000)
For #50489.

Change-Id: I4544a24327196eb3ed62af64ae5ddb1f60441d12
Reviewed-on: https://go-review.googlesource.com/c/go/+/546357
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>

doc/go1.22.html

index 4c180fd653d578ab56ab0186a65eebe4bdecaf47..fdc9827bb236e32eb0aa3cfe5818f4d74d01701f 100644 (file)
@@ -437,12 +437,10 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="math/big"><dt><a href="/pkg/math/big/">math/big</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/50489 -->
-      TODO: <a href="https://go.dev/issue/50489">https://go.dev/issue/50489</a>: Rat: add FloatPrec() (int, bool)
-    </p>
-
-    <p><!-- CL 539299 -->
-      TODO: <a href="https://go.dev/cl/539299">https://go.dev/cl/539299</a>: math/big: implement Rat.FloatPrec; modified api/next/50489.txt
+    <p><!-- https://go.dev/issue/50489, CL 539299 -->
+      The new method <a href="/pkg/math/big#Rat.FloatPrec">Rat.FloatPrec</a> computes the number of fractional decimal digits
+      required to represent a rational number accurately as a floating-point number, and whether accurate decimal representation
+      is possible in the first place.
     </p>
   </dd>
 </dl><!-- math/big -->