]> Cypherpunks repositories - gostls13.git/commit
math/big: add Int.Float64 conversion
authorAlan Donovan <adonovan@google.com>
Tue, 27 Dec 2022 19:10:18 +0000 (14:10 -0500)
committerAlan Donovan <adonovan@google.com>
Thu, 2 Feb 2023 19:39:34 +0000 (19:39 +0000)
commitfcd0e0963f3bdf289216c1083f1439a71dc571a4
treedeb0702a71469b442480b5a84ea8e0c48b3a6f09
parent4b43d668c2ae42465af7cbad4bc5fa86d0b6cc15
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>
api/next/56984.txt [new file with mode: 0644]
src/math/big/int.go
src/math/big/int_test.go