Any particular reason why there isn't a Zend_Filter_Float?

If not could/should I (or whoever handles it) get one together?

Something as simple as the following perhaps?

class Zend_Filter_Float implements Zend_Filter_Interface
{
    /**
     * Defined by Zend_Filter_Interface
     *
     * Returns (float) $value
     *
     * @param  string $value
     * @return float
     */
    public function filter($value)
    {
        return (float) ((string) $value);
    }
}

Nick

Reply via email to