Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of using an arbitrary epsilon, use the predefined PHP constant PHP_FLOAT_EPSILON, which is defined to be the smallest representable positive number "x", such that "x + 1.0 != 1.0". See https://www.php.net/manual/en/reserved.constants.php#constant.php-float-epsilon for additional information.
- Loading branch information