I've a simple question for which I've not found an answer and that is
How can I use the built-in Zend Validator to test if a float/dobule is Greater than or Equal of a min?
I've already searched for an answer that fits my request and I discovered this question GreaterOrEqual validator in Zend Framework but mine is a little bit different. Besides, I know that I can create my own Validator or copy one of those that are on the web like this one Greater Than or Equal Validator but I would like to know how I can do this validation with the built-in validators.
This is an example to let you better understand.
If I had an integer, I can achieve this goal in this way:
$Validators = array(new Zend_Validate_Int(), new Zend_Validate_GreaterThan($min - 1));
// Validate the number
Instead, If I had a float, I can't do this trick and, as a lot of programmers know, trying to do dirty things with float can create a lot of issue because of the rounding problem (What Every Computer Scientist Should Know About Floating-Point Arithmetic).
Thanks to all