Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Updated international float to return true if values are equal as pre…
Browse files Browse the repository at this point in the history
…viously string(5.00) did not equal int(5) after it was parsed
  • Loading branch information
mikestowe committed Sep 12, 2012
1 parent e5167b7 commit 35d1930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/I18n/Validator/Float.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 35d1930

Please sign in to comment.