]> Cypherpunks repositories - gostls13.git/commit
math/big: implement NaN
authorRobert Griesemer <gri@golang.org>
Mon, 2 Mar 2015 23:36:19 +0000 (15:36 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 4 Mar 2015 18:22:01 +0000 (18:22 +0000)
commite05388335285928b354aa00b9e6ebd3ab4a392b2
tree80c334b7c62f924cb2c39ada24b98d82a1526d82
parent9feb24f3ed2bf8625ba3fbb83b8784d715d37b7e
math/big: implement NaN

This change introduces NaNs (for situations like Inf-Inf, etc.).
The implementation is incomplete (the four basic operations produce
a NaN if any of the operands is an Inf or a NaN); and some operations
produce incorrect accuracy for NaN arguments. These are known bugs
which are documented.

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