Why comparing floating point numbers is bad!

Try, price = 28.8, unit_price = 4.8 and sold_by = 6

Table of comparisions here. Floating point chart

In this case to test the floating point numbers, I turned them into a string first with number_format in PHP.

Price:
unit_price
sold_by