Stop re-inventing the wheel. I write this code quite a lot when I'm working with Ruby.
>= 0
Craig R Webster