laravelshoppingcart
laravelshoppingcart copied to clipboard
Wrong subtotal + total sum
Hi, I'm experiencing an issue on the getTotal value.
When the cart tries to sum the product with a value of 427.67 + 35.4 it returns 462.66999999999996
See the image below of the Cart response.

This is probably because the package seemingly uses floats for pricing. And as such is subject to a number of rounding issues. Ideally there would be an integer representing the amount in minor units. (Ie. 82.54 usd would be 8254 cents).