Skip to content

Commit e14b96c

Browse files
griesemergopherbot
authored andcommitted
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>
1 parent c323621 commit e14b96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/big/ratconv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ func (x *Rat) FloatPrec() (n int, exact bool) {
403403
// n = max(p2, p5)
404404
// exact = q == 1
405405
//
406-
// See https://en.wikipedia.org/wiki/Repeating_decimal for
407-
// details.
406+
// For details see:
407+
// https://en.wikipedia.org/wiki/Repeating_decimal#Reciprocals_of_integers_not_coprime_to_10
408408
d := x.Denom().abs // d >= 1
409409

410410
// Determine p2 by counting factors of 2.

0 commit comments

Comments
 (0)