-added a warning about using float for if condition