Sanitize decimal values also for products

Plus explicit casting to float in function to be more robust.