First trial. Comparison of floating point numbers

Proper comparison of floating point values in equals method #1888