diff options
| author | Robert Griesemer <gri@golang.org> | 2023-11-13 16:46:47 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-14 16:45:59 +0000 |
| commit | e14b96cb511ab3437dedf2be2fa49d4516189bbc (patch) | |
| tree | ce1b7802f3317eb217e3764a1b9880da97c0dd92 /src/math/big | |
| parent | c32362125ba694d62a3f28ac35bb2734daf2056a (diff) | |
| download | go-e14b96cb511ab3437dedf2be2fa49d4516189bbc.tar.xz | |
math/big: update comment in the implementation of FloatPrec
Follow-up on CL 539299: missed to incorporate the updated
comment per feedback on that CL.
For #50489.
Change-Id: Ib035400038b1d11532f62055b5cdb382ab75654c
Reviewed-on: https://go-review.googlesource.com/c/go/+/542115
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/math/big')
| -rw-r--r-- | src/math/big/ratconv.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/big/ratconv.go b/src/math/big/ratconv.go index 9fb5711ff9..d924dcd0ac 100644 --- a/src/math/big/ratconv.go +++ b/src/math/big/ratconv.go @@ -403,8 +403,8 @@ func (x *Rat) FloatPrec() (n int, exact bool) { // n = max(p2, p5) // exact = q == 1 // - // See https://en.wikipedia.org/wiki/Repeating_decimal for - // details. + // For details see: + // https://en.wikipedia.org/wiki/Repeating_decimal#Reciprocals_of_integers_not_coprime_to_10 d := x.Denom().abs // d >= 1 // Determine p2 by counting factors of 2. |
