Floats are rounded with a precision of two decimals which can create small discrepancies as per the example above.
This is a percentage calculation, and it can be applied to a set of three items. If the client purchases 9 items, they will receive three for free, with the discount applied to all items.