Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from oskarwojciski/more_decimals_price
Browse files Browse the repository at this point in the history
Return 8 decimals for price.
  • Loading branch information
r--w authored Jan 3, 2019
2 parents 588ab9a + 518a006 commit 7c67107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func commandPrice(argument string) (string, error) {
return "", errors.Wrap(errors.New("missing data"), "command /p")
}

return fmt.Sprintf("%s price: %f USD, %f BTC \n\n http://coinpaprika.com/coin/%s", *ticker.Name, *priceUSD, *priceBTC, *ticker.ID), nil
return fmt.Sprintf("%s price: %.8f USD, %.8f BTC \n\n http://coinpaprika.com/coin/%s", *ticker.Name, *priceUSD, *priceBTC, *ticker.ID), nil
}

func commandSupply(argument string) (string, error) {
Expand Down

0 comments on commit 7c67107

Please sign in to comment.