Descriptionmath/big: make Rat.Denom() always return a reference
The documentation says so, but in the case of a normalized
integral Rat, the denominator was a new value. Changed the
internal representation to use an Int to represent the
denominator (with the sign ignored), so a reference to it
can always be returned.
Clarified documentation and added test cases.
Fixes issue 3521.
Patch Set 1 #Patch Set 2 : diff -r 0dc36a693538 https://code.google.com/p/go #Patch Set 3 : diff -r 0dc36a693538 https://code.google.com/p/go #Patch Set 4 : diff -r 0dc36a693538 https://code.google.com/p/go #Patch Set 5 : diff -r 0dc36a693538 https://code.google.com/p/go #Patch Set 6 : diff -r 3b320ce16e39 https://code.google.com/p/go #MessagesTotal messages: 3
|