]> Cypherpunks repositories - gostls13.git/commit
math/big: add Rat.{,Set}Float64 methods for IEEE 754 conversions.
authorAlan Donovan <adonovan@google.com>
Mon, 28 Jan 2013 23:00:15 +0000 (18:00 -0500)
committerAlan Donovan <adonovan@google.com>
Mon, 28 Jan 2013 23:00:15 +0000 (18:00 -0500)
commit961195ae6995a72c6f329e6397d93d62ed09135e
treecf5e67b6a6f7d07fcffd26da8a7b607bc8c8b8f0
parent4f6a2b9840f7894086a04e42ebf497b2d8fdbd33
math/big: add Rat.{,Set}Float64 methods for IEEE 754 conversions.

Added tests, using input data from strconv.ParseFloat.
Thanks to rsc for most of the test code.

math/big could use some good package-level documentation.

R=remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/6930059
src/pkg/math/big/rat.go
src/pkg/math/big/rat_test.go