Keep the percentage within [0, 1]