diff options
author | Alan Donovan <adonovan@google.com> | 2022-12-27 14:10:18 -0500 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2023-02-02 19:39:34 +0000 |
commit | fcd0e0963f3bdf289216c1083f1439a71dc571a4 (patch) | |
tree | deb0702a71469b442480b5a84ea8e0c48b3a6f09 /api | |
parent | 4b43d668c2ae42465af7cbad4bc5fa86d0b6cc15 (diff) | |
download | go-git-fcd0e0963f3bdf289216c1083f1439a71dc571a4.tar.gz |
math/big: add Int.Float64 conversion
This operation converts a big.Int to float64,
reporting the accuracy of the result, with
a fast path in hardware.
Fixes #56984
Change-Id: I86d0fb0e105a06a4009986f2f5fd87a4d446f6f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/453115
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/56984.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/56984.txt b/api/next/56984.txt new file mode 100644 index 0000000000..329c77a401 --- /dev/null +++ b/api/next/56984.txt @@ -0,0 +1 @@ +pkg math/big, method (*Int) ToFloat64() (float64, Accuracy) #56984 |