I am working on a small online store and I am trying to get the lowest price for the product (photos).
So, I check what the lowest added price (photos can be ordered in different sizes):
SELECT MIN(price) as price FROM rm_prices WHERE photo_id = '47' AND price != '0'
This returns the smallest value found for this product.
When I check my db, I see that the lowest value is 1256.3.
When I print my result, the number gives 1256.30004882813.
The value is set as FLOAT.
Why is the result 1256.30004882813 and not 1256.3?
Edy elwood
source share