Use -1 and 'f' for formatting floats.

This commit is contained in:
Adrian Gallagher
2015-06-20 17:01:14 +10:00
parent 1f6f160c23
commit 8761189400
12 changed files with 54 additions and 54 deletions

View File

@@ -222,8 +222,8 @@ func (b *BTCE) Trade(pair, orderType string, amount, price float64) {
req := url.Values{}
req.Add("pair", pair)
req.Add("type", orderType)
req.Add("amount", strconv.FormatFloat(amount, 'f', 8, 64))
req.Add("rate", strconv.FormatFloat(price, 'f', 2, 64))
req.Add("amount", strconv.FormatFloat(amount, 'f', -1, 64))
req.Add("rate", strconv.FormatFloat(price, 'f', -1, 64))
err := b.SendAuthenticatedHTTPRequest(BTCE_TRADE, req)