]> Cypherpunks repositories - gostls13.git/commit
big: implemented Rat.Inv
authorRobert Griesemer <gri@golang.org>
Fri, 21 Oct 2011 20:26:00 +0000 (13:26 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Oct 2011 20:26:00 +0000 (13:26 -0700)
commit4854bd9cedcdf575fe84a7b39b528744f26859ce
treea2c71b19763cd419721c6f00336cc68b9775bc06
parentc6bdef3fd83aa826abe14e8a63924365a286057f
big: implemented Rat.Inv

Also:
- changed semantics of return values for [Int|Rat].SetString
  if an error occured (returned value is nil); will expose
  hidden errors where return values are not checked
- added more tests
- various cleanups throughout

Fixes #2384.

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