aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/floatconv.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-02-09 16:59:31 -0800
committerRobert Griesemer <gri@golang.org>2015-02-10 19:08:53 +0000
commitf77696a7f04cf39c973f455fead2af49d5d0c0f6 (patch)
tree4210d3b8ac7f1e88ee1b22403bfe11a24620ca73 /src/math/big/floatconv.go
parent263405ea4ac29e2c70e6e0bd3793e54c60f3a305 (diff)
downloadgo-f77696a7f04cf39c973f455fead2af49d5d0c0f6.tar.xz
math/big: implemented Frexp, Ldexp, IsInt, Copy, bug fixes, more tests
- Frexp, Ldexp are equivalents to the corresponding math functions. - Set now has the same prec behavior as the other functions - Copy is a true assignment (replaces old version of Set) - Cmp now handles infinities - more tests Change-Id: I0d33980c08be3095b25d7b3d16bcad1aa7abbd0f Reviewed-on: https://go-review.googlesource.com/4292 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/floatconv.go')
-rw-r--r--src/math/big/floatconv.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/big/floatconv.go b/src/math/big/floatconv.go
index e3611b234b..71920cd51c 100644
--- a/src/math/big/floatconv.go
+++ b/src/math/big/floatconv.go
@@ -57,6 +57,7 @@ func (z *Float) SetString(s string) (*Float, bool) {
// with base 0 or 10 corresponds to the value 1.2 * 2**3.
//
// BUG(gri) This signature conflicts with Scan(s fmt.ScanState, ch rune) error.
+// TODO(gri) What should the default precision be?
func (z *Float) Scan(r io.ByteScanner, base int) (f *Float, b int, err error) {
// sign
z.neg, err = scanSign(r)