From 6be128a843623bbbfa0262f26b0efae65631b79d Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 25 Dec 2013 17:44:43 -0600 Subject: [PATCH] Display float values with btcctl with %f. This commit modifies btcctl to show float values with %f instead of the default %v. This means the values will show similar to 1180923195.260000 instead of 1.18092319526e+09 (scientific notation). --- util/btcctl/btcctl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/btcctl/btcctl.go b/util/btcctl/btcctl.go index c59f3fcf..8e112c34 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -110,7 +110,7 @@ func displayGeneric(reply interface{}) error { // is returned if a float64 is not passed. func displayFloat64(reply interface{}) error { if val, ok := reply.(float64); ok { - fmt.Println(val) + fmt.Printf("%f", val) return nil }