If you have to compare two numbers you should use some epsilon (depends on your needs).
But there are some cases where you should not use float numbers - for example money.
BTW, there is the simplest way to write the comparator abs(a - b) <= epsilon.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you have to compare two numbers you should use some epsilon (depends on your needs).
But there are some cases where you should not use float numbers - for example money.
BTW, there is the simplest way to write the comparator
abs(a - b) <= epsilon
.