EllisLab/CodeIgniter — Issue #1149: User Guide form validation rules, decimal rule misleading
Author: andrewfraley
Created: 2012-03-08 21:55:08+00:00
State: open

I noticed this in the User Guide for form validation rules: http://codeigniter.com/user_guide/libraries/form_validation.html
(Also an issue in previous versions)

The rule for decimal states that it accepts a parameter and: "Returns FALSE if the form element is not exactly the parameter value."

This seems to imply that you can give it a value and it will return false if that values do not match. Looking at Form_validation.php the decimal function only takes the input string and verifies that it is in fact a decimal number. I'm sure this is the intended functionality, but perhaps the documentation should be changed.