EllisLab/CodeIgniter — pull request #1009 by NickABusey (2012-02-02 18:10:13+00:00)
Title: Adding equal to greater than, equal to less than form validators.

I think this is very useful.

I have seen some say this feature is unnecessary as you can just decrement the number in question. In other words, to make sure it's equal to or greater than 0, make the number -1.

This causes two problems, first and most importantly it's broken. -.5 would be valid in this case, which is clearly NOT equal to or greater than 0.

Also, the error messaging is ugly. "The amount field must contain a number greater than -1" looks unprofessional and hacky, whereas "The amount field must contain a number equal to or greater than 0." is far nicer and easier to understand.