increase epsilon comparing floats in pdo_ae_output_param_floats.phpt
This commit is contained in:
parent
e55d3c8eed
commit
6a96ef482e
|
@ -25,7 +25,7 @@ $pdoParamTypes = array(
|
||||||
// this function returns true if the floats are more different than expected
|
// this function returns true if the floats are more different than expected
|
||||||
function compareFloats($actual, $expected)
|
function compareFloats($actual, $expected)
|
||||||
{
|
{
|
||||||
$epsilon = 0.00001;
|
$epsilon = 0.0001;
|
||||||
$diff = abs(($actual - $expected) / $expected);
|
$diff = abs(($actual - $expected) / $expected);
|
||||||
return ($diff > $epsilon);
|
return ($diff > $epsilon);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue