Permalink
Browse files

Updated international float to return true if values are equal as pre…

…viously string(5.00) did not equal int(5) after it was parsed
  • Loading branch information...
1 parent e5167b7 commit 35d19306b21772a15bcb464cf9473890f946226d @mikestowe mikestowe committed Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/I18n/Validator/Float.php
@@ -123,7 +123,7 @@ public function isValid($value)
$valueFiltered = str_replace($groupingSep, '', $value);
$valueFiltered = str_replace($decimalSep, '.', $valueFiltered);
- if (strval($parsedFloat) !== $valueFiltered) {
+ if (strval($parsedFloat) != $valueFiltered) {
$this->error(self::NOT_FLOAT);
return false;
}

0 comments on commit 35d1930

Please sign in to comment.