]> Cypherpunks.ru repositories - gostls13.git/commit
math/big: fix %b format so it matches strconf %b format for non-zero values
authorRobert Griesemer <gri@golang.org>
Tue, 3 Feb 2015 23:13:26 +0000 (15:13 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 4 Feb 2015 21:07:37 +0000 (21:07 +0000)
commitb8fcae02b076cdef0bbef5bce5de090409858fba
treee294167d869d48372020a0d20ed09bad9a3af477
parentbbd6771621247d77075cc71ad49a6a8d6cc076a7
math/big: fix %b format so it matches strconf %b format for non-zero values

(For zero values the strconv %b format prints the bias-adjusted exponent;
there's no bias in Float.)

Change-Id: I6f4dda9c3a50d02eac375cfe2c927c1540aae865
Reviewed-on: https://go-review.googlesource.com/3841
Reviewed-by: Alan Donovan <adonovan@google.com>
src/math/big/floatconv.go
src/math/big/floatconv_test.go