"'%value%' does not appear to be a float" ); /** * Defined by Zend_Validate_Interface * * Returns true if and only if $value is a floating-point value * * @param string $value * @return boolean */ public function isValid($value) { $valueString = (string) $value; $this->_setValue($valueString); $locale = localeconv(); $valueFiltered = str_replace($locale['thousands_sep'], '', $valueString); $valueFiltered = str_replace($locale['decimal_point'], '.', $valueFiltered); if (strval(floatval($valueFiltered)) != $valueFiltered) { $this->_error(); return false; } return true; } }