min/max verifies valid numbers only