Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 35d19306b21772a15bcb464cf9473890f946226d 1 parent e5167b7
@mikestowe mikestowe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Zend/I18n/Validator/Float.php
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.