]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/math/big/ratconv.go
math/big: update comment in the implementation of FloatPrec
[gostls13.git] / src / math / big / ratconv.go
index 9fb5711ff9e182aee87b9cd8aeb66811134af6e0..d924dcd0aceb3427937be2807e6519cb425f88bf 100644 (file)
@@ -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.