Merge pull request #723 from v-kaywon/fixOutputFloatTest

increase epsilon comparing floats in pdo_ae_output_param_floats.phpt
This commit is contained in:
Yuki Wong 2018-03-15 17:27:09 -07:00 committed by GitHub
commit 8ed2aeb29a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ $pdoParamTypes = array(
// this function returns true if the floats are more different than expected
function compareFloats($actual, $expected)
{
$epsilon = 0.00001;
$epsilon = 0.0001;
$diff = abs(($actual - $expected) / $expected);
return ($diff > $epsilon);
}