• Robert Griesemer's avatar
    math/big: make Rat.Denom() always return a reference · 07612b8d
    Robert Griesemer authored
    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 #3521.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/6237045
    07612b8d
Name
Last commit
Last update
..
arith.go Loading commit data...
arith_386.s Loading commit data...
arith_amd64.s Loading commit data...
arith_arm.s Loading commit data...
arith_decl.go Loading commit data...
arith_test.go Loading commit data...
calibrate_test.go Loading commit data...
example_test.go Loading commit data...
hilbert_test.go Loading commit data...
int.go Loading commit data...
int_test.go Loading commit data...
nat.go Loading commit data...
nat_test.go Loading commit data...
rat.go Loading commit data...
rat_test.go Loading commit data...