Fixed float precision

parent a46926a4
......@@ -70,7 +70,7 @@ func paypal(context smolder.APIContext, id string) (db.Payment, error) {
panic("Too many transactions found for payment!")
}
value, ab, err := big.ParseFloat(payment.Transactions[0].Amount.Total, 10, 2, big.ToNearestEven)
value, ab, err := big.ParseFloat(payment.Transactions[0].Amount.Total, 10, 16, big.ToNearestEven)
if err != nil {
spew.Dump(payment)
return p, errors.New("Can't parse value of this transaction")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment