Skip to content

Comparison with fixed epsilon in constant float type is wrong #9228

@mvorisek

Description

@mvorisek

Bug report

0.000123456789123456 type is not the same as 0.000123456789123457.

Float precision fixed in phpstan/phpstan-src#2358.

Related fixes in phpunit:

Code snippet that reproduces the problem

https://phpstan.org/r/d5c58c0a-234f-4d01-b768-210a2ef98eb7

Expected output

described in repro

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions