Fix warning about data type by evaluating float with bounds