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).
This commit is contained in:
Dave Collins 2013-12-25 17:44:43 -06:00
parent dc200d002e
commit 6be128a843

View file

@ -110,7 +110,7 @@ func displayGeneric(reply interface{}) error {
// is returned if a float64 is not passed. // is returned if a float64 is not passed.
func displayFloat64(reply interface{}) error { func displayFloat64(reply interface{}) error {
if val, ok := reply.(float64); ok { if val, ok := reply.(float64); ok {
fmt.Println(val) fmt.Printf("%f", val)
return nil return nil
} }