I am working on a program that finds 2 slopes and them compares them to see if they are equal. I am using doubles for this. I am finding that even though my slopes should be "equal" they are coming out a little bit off and so aren't showing as being equal. For example I get one slope of 1.0000000000000009 and 0.9999999999999999. So they should be equal in theory, but they aren't.
What can I do to fix this?