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 #4874

Merged
merged 1 commit into from Jan 24, 2022
Merged

Use predefined PHP float epsilon #4874

merged 1 commit into from Jan 24, 2022

Commits on Jan 24, 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 24, 2022
    Configuration menu
    Copy the full SHA
    db536aa View commit details
    Browse the repository at this point in the history