Merge pull request #723 from v-kaywon/fixOutputFloatTest
increase epsilon comparing floats in pdo_ae_output_param_floats.phpt
This commit is contained in:
commit
8ed2aeb29a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue