Try to cast p_min/p_max to float