]> Cypherpunks repositories - gostls13.git/commit
big: added a few missing functions:
authorRobert Griesemer <gri@golang.org>
Mon, 12 Jul 2010 23:09:27 +0000 (16:09 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 12 Jul 2010 23:09:27 +0000 (16:09 -0700)
commit97bcf049f76441846ea190fcd41cd5cf0a8b2284
treeffd1b935196182662b33eb95f4269e4710095ce4
parentbebd22f8e045676b1d902013ff87ab75c13c3d63
big: added a few missing functions:
- sign to determine if a value is < 0, == 0, > 0
- abs to compute absolute value
- Rat.IsInt to test if a rational number is representable as an integer

R=rsc
CC=golang-dev
https://golang.org/cl/1761042
src/pkg/big/int.go
src/pkg/big/int_test.go
src/pkg/big/rat.go
src/pkg/big/rat_test.go