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:
parent
dc200d002e
commit
6be128a843
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue