Skip to content

Update matching.py fix a bug in my_cmp#5

Open
Fizzmy wants to merge 1 commit intoRivendile:mainfrom
Fizzmy:patch-1
Open

Update matching.py fix a bug in my_cmp#5
Fizzmy wants to merge 1 commit intoRivendile:mainfrom
Fizzmy:patch-1

Conversation

@Fizzmy
Copy link

@Fizzmy Fizzmy commented Dec 29, 2023

In math.isclose, when y is equal to 0, the relative difference is equal to 1, so it can't work correctly. We should use abs difference.

In math.isclose, when y is equal to 0, the relative difference is equal to 1, so it can't work correctly. We should use abs difference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant