make sure discount is a float