aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/float.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-01-30 15:57:38 -0800
committerRobert Griesemer <gri@golang.org>2015-02-03 18:43:51 +0000
commit4c91c0d07b7da552a57ec2b7a33b1d6b46d4889c (patch)
tree71a9ab4b0d1bfd262d8b0594b39cde32b4713ad2 /src/math/big/float.go
parent2e5b065ac24912be82e7082eeb136afd18d9734b (diff)
downloadgo-4c91c0d07b7da552a57ec2b7a33b1d6b46d4889c.tar.xz
math/big: build Float.Format on top of Float.Append
Change-Id: I444eec24467f827caa5c88a1c5ae5bce92508b98 Reviewed-on: https://go-review.googlesource.com/3750 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/float.go')
-rw-r--r--src/math/big/float.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/float.go b/src/math/big/float.go
index 7047a6d996..1c3fcb5f74 100644
--- a/src/math/big/float.go
+++ b/src/math/big/float.go
@@ -176,7 +176,7 @@ func (x *Float) validate() {
const msb = 1 << (_W - 1)
m := len(x.mant)
if x.mant[m-1]&msb == 0 {
- panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.pstring()))
+ panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Format('p', 0)))
}
if x.prec <= 0 {
panic(fmt.Sprintf("invalid precision %d", x.prec))