]> Cypherpunks repositories - gostls13.git/commit
math/big: handle NaNs in Float.Cmp
authorRobert Griesemer <gri@golang.org>
Thu, 5 Mar 2015 21:10:33 +0000 (13:10 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 12 Mar 2015 18:56:25 +0000 (18:56 +0000)
commit8a6eca43dfeeb0ff370c34995bb7626522f174c1
treea29fb04f8227bfe4a9160dc78760dce07e4a82a0
parentd022266a9a2e77eaeccdbe25241250d559bdc903
math/big: handle NaNs in Float.Cmp

Also:
- Implemented NewFloat convenience factory function (analogous to
  NewInt and NewRat).
- Implemented convenience accessors for Accuracy values returned
  from Float.Cmp.
- Added test and example.

Change-Id: I985bb4f86e6def222d4b2505417250d29a39c60e
Reviewed-on: https://go-review.googlesource.com/6970
Reviewed-by: Alan Donovan <adonovan@google.com>
src/math/big/float.go
src/math/big/float_test.go
src/math/big/floatexample_test.go