Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use predefined PHP float epsilon #4873

Closed
wants to merge 1 commit into from
Closed

Use predefined PHP float epsilon #4873

wants to merge 1 commit into from

Commits on Jan 23, 2022

  1. Use predefined PHP float epsilon

    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.
    marijnvanwezel committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    f27a65d View commit details
    Browse the repository at this point in the history